Function at 0x439660
Capabilities:
Get file size
Prepare http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x672494]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x18], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x1b0]
push 0
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4396c2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x4396bc
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x43991f
push 0x40
lea esi, [edi + 8]
push 0
push esi
call fcn.0056c1d0
add esp, 0xc
push 0x20
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
push dword [ebp + 0x20]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x10]
push 0
push 0
push dword [esp + 0x20]
push ebx
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
jne 0x43971a
call fcn.0043aff0
test eax, eax
jns 0x43971d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret 0x24
mov dword [edi + 4], eax
cmp dword [edi + 0xc0], 0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
je 0x439753
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 2
push eax
push 0x3f
push dword [edi + 4]
call esi
test eax, eax
jne 0x439753
call fcn.0043aff0
test eax, eax
js 0x43991f
cmp dword [edi + 0x178], 0
je 0x43977b
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 2
push eax
push 0x58
push dword [edi + 4]
call esi
test eax, eax
jne 0x43977b
call fcn.0043aff0
push 0
push 0xffffffffffffffff
push 0x4395f0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4397ab
call fcn.0043aff0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [edi + 0x158]
mov ecx, edi
mov dword [edi + 0x15c], eax
call fcn.0043aa10
lea eax, [edi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x7e80
mov dword [edi + 0x1f0], 1
call fcn.005757ed
add esp, 4
mov dword [edi + 0x17c], eax
test eax, eax
je 0x43989c
mov dword [edi + 0x180], 0x7e80
cmp dword [edi + 0x150], 0
je 0x439878
cmp dword [edi + 0x154], 8
lea eax, [edi + 0x140]
jb 0x439814
mov eax, dword [eax]
sub esp, 0xc
push 4
push ecx
push 0x40000000
push eax
lea ecx, [edi + 0x184]
call fcn.00439d60
mov esi, eax
test esi, esi
js 0x439913
push ecx
push dword [edi + 0xbc]
lea ecx, [edi + 0x184]
push dword [edi + 0xb8]
call fcn.00439d10
mov esi, eax
test esi, esi
js 0x439913
push dword [edi + 0xbc]
lea ecx, [edi + 0x184]
push dword [edi + 0xb8]
call fcn.00439c90
mov esi, eax
test esi, esi
js 0x439913
cmp dword [edi + 0x138], 0
je 0x439911
push 0x7e80
call fcn.005757ed
add esp, 4
mov dword [edi + 0x18c], eax
test eax, eax
jne 0x4398a3
mov esi, 0x8007000e
jmp 0x439913
lea eax, [edi + 0x128]
mov dword [edi + 0x190], 0x7e80
cmp dword [eax + 0x14], 8
jb 0x4398bb
mov eax, dword [eax]
sub esp, 0xc
push 3
push ecx
push SysReAllocStringLen
push eax
lea ecx, [edi + 0x194]
call fcn.00439d60
mov esi, eax
test esi, esi
js 0x439913
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x194]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x439901
call fcn.0043aff0
mov esi, eax
test esi, esi
js 0x439913
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1a0], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1a4], eax
xor esi, esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret 0x24