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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1cb6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x51d240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
push eax
call fcn.0048af20
push esi
push 0x4f0460
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x21c]
push str.curlnet.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00415a40
mov ecx, eax
test ecx, ecx
je 0x416551
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x416394
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.0040dd90
jmp 0x4163c2
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4163a0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00406570
mov edi, dword [0x51f9bc]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], edi
test edi, edi
jne 0x416444
push 0x51c138
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51f9bc], edi
jne 0x41642d
push 0x1c
call fcn.0045301a
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41641b
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x41641d
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x51f9bc], eax
push 0x51c138
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x51f9bc]
mov dword [ebp - 0x220], edi
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416501
push esi
call fcn.0043ec70
add esp, 4
test eax, eax
je 0x416501
cmp dword [edi], 0
jne 0x4164eb
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x416501
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call edi
mov ecx, dword [ebp - 0x220]
push str.CurlUninit
push dword [ecx]
mov dword [ecx + 4], eax
call edi
mov ecx, dword [ebp - 0x220]
push str.zlib_uncompress
push dword [ecx]
mov dword [ecx + 8], eax
call edi
mov ecx, dword [ebp - 0x220]
push str.zlib_compress
push dword [ecx]
mov dword [ecx + 0x10], eax
call edi
mov ecx, dword [ebp - 0x220]
push str.zlib_compressBound
push dword [ecx]
mov dword [ecx + 0x14], eax
call edi
mov edi, dword [ebp - 0x220]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4164eb
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x416501
cmp dword [edi + 4], 0
je 0x416501
cmp dword [edi + 0xc], 0
je 0x416501
xor ecx, ecx
jmp 0x416506
mov ecx, 1
mov dword [ebp - 0x220], ecx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416531
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x220]
test cl, cl
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045345a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c90
int3