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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dede6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5181bc]
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.00466070
push esi
push 0x4ed408
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.00404e60
mov ecx, eax
test ecx, ecx
je 0x413314
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 0x413164
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.0040dd50
jmp 0x413192
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413170
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00406410
mov edi, dword [0x51b9b4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], edi
test edi, edi
jne 0x413214
push 0x518130
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51b9b4], edi
jne 0x4131fd
push 0x1c
call fcn.004433ba
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4131eb
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 0x4131ed
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x51b9b4], eax
push 0x518130
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x51b9b4]
mov dword [ebp - 0x220], edi
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4132c6
cmp dword [edi], 0
jne 0x4132aa
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x4132c6
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 0x4132aa
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x4132c6
cmp dword [edi + 4], 0
je 0x4132c6
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x220], 0
jne 0x4132d0
mov dword [ebp - 0x220], 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4132ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x220], 0
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.004437fa
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b50
int3