Function at 0x429a89
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
inc esi
xor eax, eax
lea edx, [edi + 0x98]
lock cmpxchg dword [edx], esi
cmp eax, 1
jne 0x429abb
mov al, 1
jmp 0x429d9c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0042edc0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.wininet.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042d724
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x429d9a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DeleteUrlCacheEntryA
push eax
call esi
push str.FindCloseUrlCache
push dword [ebp - 0x210]
mov dword [edi + 4], eax
call esi
push str.FindNextUrlCacheEntryA
push dword [ebp - 0x210]
mov dword [edi + 8], eax
call esi
push str.HttpAddRequestHeadersA
push dword [ebp - 0x210]
mov dword [edi + 0xc], eax
call esi
push str.HttpAddRequestHeadersW
push dword [ebp - 0x210]
mov dword [edi + 0x10], eax
call esi
push str.HttpEndRequestW
push dword [ebp - 0x210]
mov dword [edi + 0x14], eax
call esi
push str.HttpQueryInfoA
push dword [ebp - 0x210]
mov dword [edi + 0x18], eax
call esi
push str.HttpQueryInfoW
push dword [ebp - 0x210]
mov dword [edi + 0x1c], eax
call esi
push str.HttpSendRequestA
push dword [ebp - 0x210]
mov dword [edi + 0x20], eax
call esi
push str.HttpSendRequestExW
push dword [ebp - 0x210]
mov dword [edi + 0x24], eax
call esi
push str.HttpSendRequestW
push dword [ebp - 0x210]
mov dword [edi + 0x28], eax
call esi
push str.InternetCloseHandle
push dword [ebp - 0x210]
mov dword [edi + 0x2c], eax
call esi
push str.InternetCrackUrlA
push dword [ebp - 0x210]
mov dword [edi + 0x30], eax
call esi
push str.InternetCrackUrlW
push dword [ebp - 0x210]
mov dword [edi + 0x34], eax
call esi
push str.InternetErrorDlg
push dword [ebp - 0x210]
mov dword [edi + 0x38], eax
call esi
push str.InternetGetCookieW
push dword [ebp - 0x210]
mov dword [edi + 0x3c], eax
call esi
push str.InternetReadFile
push dword [ebp - 0x210]
mov dword [edi + 0x40], eax
call esi
push str.InternetSetCookieW
push dword [ebp - 0x210]
mov dword [edi + 0x44], eax
call esi
push str.InternetSetOptionA
push dword [ebp - 0x210]
mov dword [edi + 0x48], eax
call esi
push str.InternetSetOptionExA
push dword [ebp - 0x210]
mov dword [edi + 0x4c], eax
call esi
mov dword [edi + 0x50], eax
push str.InternetSetOptionExW
push dword [ebp - 0x210]
call esi
push str.InternetSetOptionW
push dword [ebp - 0x210]
mov dword [edi + 0x54], eax
call esi
push str.InternetWriteFile
push dword [ebp - 0x210]
mov dword [edi + 0x58], eax
call esi
push str.InternetSetCookieExA
push dword [ebp - 0x210]
mov dword [edi + 0x5c], eax
call esi
push str.InternetSetCookieExW
push dword [ebp - 0x210]
mov dword [edi + 0x60], eax
call esi
push str.FindFirstUrlCacheEntryA
push dword [ebp - 0x210]
mov dword [edi + 0x64], eax
call esi
push str.HttpOpenRequestW
push dword [ebp - 0x210]
mov dword [edi + 0x68], eax
call esi
push str.InternetConnectW
push dword [ebp - 0x210]
mov dword [edi + 0x6c], eax
call esi
push str.InternetOpenUrlW
push dword [ebp - 0x210]
mov dword [edi + 0x70], eax
call esi
push str.InternetOpenW
push dword [ebp - 0x210]
mov dword [edi + 0x74], eax
call esi
push str.InternetQueryOptionW
push dword [ebp - 0x210]
mov dword [edi + 0x78], eax
call esi
push str.InternetGetCookieExW
push dword [ebp - 0x210]
mov dword [edi + 0x7c], eax
call esi
push str.GetUrlCacheEntryInfoW
push dword [ebp - 0x210]
mov dword [edi + 0x80], eax
call esi
push str.GetUrlCacheEntryInfoA
push dword [ebp - 0x210]
mov dword [edi + 0x84], eax
call esi
push str.InternetGetConnectedState
push dword [ebp - 0x210]
mov dword [edi + 0x88], eax
call esi
push str.InternetGetConnectedStateExW
push dword [ebp - 0x210]
mov dword [edi + 0x8c], eax
call esi
push str.InternetGetConnectedStateExA
push dword [ebp - 0x210]
mov dword [edi + 0x90], eax
call esi
mov dword [edi + 0x94], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jmp 0x429ab4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret