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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4ce208]
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.004517d0
push esi
push 0x4ae1cc
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.00403e30
mov ecx, eax
test ecx, ecx
je 0x412084
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 0x411ed4
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.0040cbd0
jmp 0x411f02
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411ee0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.004053e0
mov edi, dword [0x4d026c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], edi
test edi, edi
jne 0x411f84
push 0x4ce130
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4d026c], edi
jne 0x411f6d
push 0x1c
call fcn.00443d4a
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x411f5b
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 0x411f5d
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4d026c], eax
push 0x4ce130
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x4d026c]
mov dword [ebp - 0x220], edi
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412036
cmp dword [edi], 0
jne 0x41201a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x412036
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 0x41201a
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x412036
cmp dword [edi + 4], 0
je 0x412036
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x220], 0
jne 0x412040
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 0x41205f
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.0044418a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403b20
int3