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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
push 0
lea eax, [ebx + 0x1b0]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x42b17f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42b179
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x42b3d9
push 0x40
lea esi, [ebx + 8]
push 0
push esi
call fcn.006ce4d0
mov edi, dword [ebp + 0x10]
add esp, 0xc
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 0x20]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
jne 0x42b1cc
call fcn.0042ce60
test eax, eax
jns 0x42b1cf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [ebx + 4], eax
cmp dword [ebx + 0xc0], 0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
je 0x42b205
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 2
push eax
push 0x3f
push dword [ebx + 4]
call esi
test eax, eax
jne 0x42b205
call fcn.0042ce60
test eax, eax
js 0x42b3d9
cmp dword [ebx + 0x178], 0
je 0x42b22d
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 2
push eax
push 0x58
push dword [ebx + 4]
call esi
test eax, eax
jne 0x42b22d
call fcn.0042ce60
push 0
push 0xffffffffffffffff
push 0x42b0d0
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x42b252
call fcn.0042ce60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebx + 0x158]
mov ecx, ebx
mov dword [ebx + 0x15c], eax
call fcn.0042c840
lea eax, [ebx + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x7e80
mov dword [ebx + 0x1f0], 1
call fcn.006d7c2d
add esp, 4
mov dword [ebx + 0x17c], eax
test eax, eax
je 0x42b343
mov dword [ebx + 0x180], 0x7e80
cmp dword [ebx + 0x150], 0
je 0x42b31f
cmp dword [ebx + 0x154], 8
lea eax, [ebx + 0x140]
jb 0x42b2bb
mov eax, dword [eax]
sub esp, 0xc
push 4
push ecx
push 0x40000000
push eax
lea ecx, [ebx + 0x184]
call fcn.0042b820
mov esi, eax
test esi, esi
js 0x42b3cd
push ecx
push dword [ebx + 0xbc]
lea ecx, [ebx + 0x184]
push dword [ebx + 0xb8]
call fcn.0042b770
mov esi, eax
test esi, esi
js 0x42b3cd
push dword [ebx + 0xbc]
lea ecx, [ebx + 0x184]
push dword [ebx + 0xb8]
call fcn.0042b710
mov esi, eax
test esi, esi
js 0x42b3cd
cmp dword [ebx + 0x138], 0
je 0x42b3cb
push 0x7e80
call fcn.006d7c2d
add esp, 4
mov dword [ebx + 0x18c], eax
test eax, eax
jne 0x42b35d
push dword [esp + 0x1c]
mov esi, 0x8007000e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea eax, [ebx + 0x128]
mov dword [ebx + 0x190], 0x7e80
cmp dword [eax + 0x14], 8
jb 0x42b375
mov eax, dword [eax]
sub esp, 0xc
push 3
push ecx
push SysReAllocStringLen
push eax
lea ecx, [ebx + 0x194]
call fcn.0042b820
mov esi, eax
test esi, esi
js 0x42b3cd
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x194]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x42b3bb
call fcn.0042ce60
mov esi, eax
test esi, esi
js 0x42b3cd
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1a0], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1a4], eax
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24