Function at 0x1003e020
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10125111
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x1c], 0
jne 0x1003e3a3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1016e968]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [0x10171368]
test al, 1
jne 0x1003e0bb
or eax, 1
mov dword [0x10171364], 0
mov dword [0x10171368], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call fcn.10085d82
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x1003d730
push 0x10171364
call fcn.1008615f
add esp, 0x10
test eax, eax
je 0x1003e3ad
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 2
push eax
call fcn.10085dbc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1017136c
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003e2c0
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [0x1017138c]
test al, 1
jne 0x1003e17f
or eax, 1
mov dword [0x10171388], 0
mov dword [0x1017138c], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 5
push eax
call fcn.10085d82
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 6
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x1003d7f0
push 0x10171388
call fcn.1008615f
add esp, 0x10
test eax, eax
je 0x1003e313
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 7
push eax
call fcn.10085dbc
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x10171390
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x1003e2c0
mov eax, dword [0x101713cc]
test al, 1
jne 0x1003e236
or eax, 1
mov dword [0x101713c8], 0
mov dword [0x101713cc], eax
mov byte [ebp - 0x21a], 0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xa
push eax
call fcn.10085d82
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x21a]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
push eax
push 0x1003d670
push 0x101713c8
call fcn.1008615f
add esp, 0x10
test eax, eax
je 0x1003e2ef
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xc
push eax
call fcn.10085dbc
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x101713d0
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.10074f00
add esp, 4
test eax, eax
jne 0x1003e337
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c495f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xd
push eax
call fcn.10085ddd
add esp, 4
mov byte [ebp - 4], 0xb
test al, al
je 0x1003e3df
jmp 0x1003e3c9
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
call fcn.10085ddd
add esp, 4
mov byte [ebp - 4], 6
test al, al
jne 0x1003e3e4
jmp 0x1003e3df
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x1003e3a3
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1003e3a3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1003e3a3
call eax
mov dword [edi + 0xc], eax
mov eax, 1
jmp 0x1003e2d3
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
call fcn.10085ddd
add esp, 4
mov byte [ebp - 4], 1
jmp 0x1003e32a
sub esp, 8
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.1000c170
call fcn.1000cb30
call fcn.10086177
sub esp, 8
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.1000c170
call fcn.1000cb30
int3