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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5b0514]
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 0x42e0f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x42e0ec
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x42e34f
push pe_nt_image_headers32
lea esi, [edi + 8]
push 0
push esi
call fcn.005219d0
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 0x42e14a
call fcn.0042fb30
test eax, eax
jns 0x42e14d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00497cb0
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 0x42e183
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 0x42e183
call fcn.0042fb30
test eax, eax
js 0x42e34f
cmp dword [edi + 0x178], 0
je 0x42e1ab
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 0x42e1ab
call fcn.0042fb30
push 0
push 0xffffffffffffffff
push 0x42e020
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x42e1db
call fcn.0042fb30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [edi + 0x158]
mov ecx, edi
mov dword [edi + 0x15c], eax
call fcn.0042f520
lea eax, [edi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x7e80
mov dword [edi + 0x1f0], 1
call fcn.0052ad56
add esp, 4
mov dword [edi + 0x17c], eax
test eax, eax
je 0x42e2cc
mov dword [edi + 0x180], 0x7e80
cmp dword [edi + 0x150], 0
je 0x42e2a8
cmp dword [edi + 0x154], 8
lea eax, [edi + 0x140]
jb 0x42e244
mov eax, dword [eax]
sub esp, 0xc
push 4
push ecx
push 0x40000000
push eax
lea ecx, [edi + 0x184]
call fcn.0042e4c0
mov esi, eax
test esi, esi
js 0x42e343
push ecx
push dword [edi + 0xbc]
lea ecx, [edi + 0x184]
push dword [edi + 0xb8]
call fcn.0042e470
mov esi, eax
test esi, esi
js 0x42e343
push dword [edi + 0xbc]
lea ecx, [edi + 0x184]
push dword [edi + 0xb8]
call fcn.0042e3f0
mov esi, eax
test esi, esi
js 0x42e343
cmp dword [edi + 0x138], 0
je 0x42e341
push 0x7e80
call fcn.0052ad56
add esp, 4
mov dword [edi + 0x18c], eax
test eax, eax
jne 0x42e2d3
mov esi, 0x8007000e
jmp 0x42e343
lea eax, [edi + 0x128]
mov dword [edi + 0x190], 0x7e80
cmp dword [eax + 0x14], 8
jb 0x42e2eb
mov eax, dword [eax]
sub esp, 0xc
push 3
push ecx
push SysReAllocString
push eax
lea ecx, [edi + 0x194]
call fcn.0042e4c0
mov esi, eax
test esi, esi
js 0x42e343
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 0x42e331
call fcn.0042fb30
mov esi, eax
test esi, esi
js 0x42e343
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.00497cb0
mov esp, ebp
pop ebp
ret 0x24