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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4691c1
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x487244]
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 0x40cd74
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434130
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x48a0dc]
test al, 1
jne 0x40ca8c
or eax, 1
mov dword [0x48a0d8], 0
mov dword [0x48a0dc], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call fcn.0041713e
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 0x40c390
push 0x48a0d8
call fcn.00417824
add esp, 0x10
test eax, eax
je 0x40cd7e
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 2
push eax
call fcn.00417178
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x48a0e0
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x40cc91
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x48a100]
test al, 1
jne 0x40cb56
or eax, 1
mov dword [0x48a0fc], 0
mov dword [0x48a100], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 5
push eax
call fcn.0041713e
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 0x40c190
push 0x48a0fc
call fcn.00417824
add esp, 0x10
test eax, eax
je 0x40cce4
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 7
push eax
call fcn.00417178
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x48a104
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x40cc91
mov eax, dword [0x48a140]
test al, 1
jne 0x40cc07
or eax, 1
mov dword [0x48a13c], 0
mov dword [0x48a140], eax
mov byte [ebp - 0x21a], 0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xa
push eax
call fcn.0041713e
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 0x40c280
push 0x48a13c
call fcn.00417824
add esp, 0x10
test eax, eax
je 0x40ccc0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xc
push eax
call fcn.00417178
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x48a148
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00413dc0
add esp, 4
test eax, eax
jne 0x40cd08
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.00429ded
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xd
push eax
call fcn.00417199
add esp, 4
mov byte [ebp - 4], 0xb
test al, al
je 0x40cdb0
jmp 0x40cd9a
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
call fcn.00417199
add esp, 4
mov byte [ebp - 4], 6
test al, al
jne 0x40cdb5
jmp 0x40cdb0
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x40cd74
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40cd74
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 0x40cd74
call eax
mov dword [edi + 0xc], eax
mov eax, 1
jmp 0x40cca4
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
call fcn.00417199
add esp, 4
mov byte [ebp - 4], 1
jmp 0x40ccfb
sub esp, 8
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.00407d50
call fcn.004096b0
call fcn.004178d3
sub esp, 8
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.00407d50
call fcn.004096b0
int3