OpenUrlInBrowser
function · os · host
- Address
0x429ff0· 392 bytes, up to0x42a177- Signature
bool __fastcall (const char *url)- Meaning
- Opens a URL with its escapes decoded through ShellExecute, else through the .html program; returns 1 on success
- Confidence
- verified, proof two
- Finding
- net/connection#opening-a-url
Finding: Opening a URL in net: connection
OpenUrlInBrowser(url) (0x429ff0) returns 0 for a null or empty URL, with no active window, and
for 0x400 bytes or more (error 0x57). It copies the URL decoding escapes: %ab becomes
T[a] << 4 | T[b] in 8 bits, T the table 0x801490 indexed by the signed byte, so a byte from
0x80 up reads the 128 bytes before the table; a % with fewer than two bytes left ends the copy. It
returns 1 when ShellExecuteA(window, "open", copy, NULL, NULL, 1) gives above 32. Otherwise, unless
the undecoded URL begins exactly file://, it creates an empty temp-folder TempHTMLFile<ms in hex>.html, asks
FindExecutableA for its program, deletes the file, and returns 1 when that program, given the
copy, gives above 32.
The derivation is in the doc.
Callers 2
- Script::LaunchAddOnURL glue
- LaunchAllowedUrl net
Callees 6
- OsGetAsyncTimeMs core
- SStrLen storm
- SStrPrintf storm
- SErrSetLastError storm
- _fclose crt
- _fopen crt
Calls and jumps by a bare address, from tables/calls.tsv.