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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc446
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x516240]
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.00485d90
push esi
push 0x4ea32c
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.00404e30
mov ecx, eax
test ecx, ecx
je 0x412f21
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 0x412d64
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.0040dc00
jmp 0x412d92
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d70
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.004063e0
mov edi, dword [0x5189c4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], edi
test edi, edi
jne 0x412e14
push 0x515138
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5189c4], edi
jne 0x412dfd
push 0x1c
call fcn.0044ee7a
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x412deb
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 0x412ded
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x5189c4], eax
push 0x515138
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5189c4]
mov dword [ebp - 0x220], edi
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412ed1
push esi
call fcn.0041ecf0
add esp, 4
test eax, eax
je 0x412ed1
cmp dword [edi], 0
jne 0x412ebb
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x412ed1
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 0x412ebb
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x412ed1
cmp dword [edi + 4], 0
je 0x412ed1
cmp dword [edi + 0xc], 0
je 0x412ed1
xor ecx, ecx
jmp 0x412ed6
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 0x412f01
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.0044f2ba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b20
int3