Function at 0x402270
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42262c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd60
mov eax, dword [0x432068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xd68], edi
mov dword [ebp - 0xd64], edi
mov dword [ebp - 0xd64], edi
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0
call dword [sym.imp.WININET.dll_InternetOpenA]
xor esi, esi
mov dword [ebp - 0xd60], eax
mov dword [ebp - 0xcf4], esi
mov dword [ebp - 0xcf0], 0xf
mov byte [ebp - 0xd04], 0
mov byte [ebp - 4], 2
test eax, eax
je 0x4026e2
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebp - 0x118]
mov dword [ebp - 0xd48], eax
lea ecx, [ebp - 0xd58]
push ecx
lea eax, [ebp - 0xce8]
mov dword [ebp - 0xd4c], esi
mov dword [ebp - 0xd2c], eax
xorps xmm0, xmm0
push esi
lea eax, [ebx + 8]
movlpd qword [ebp - 0xd54], xmm0
cmovae eax, dword [ebx + 8]
push esi
push eax
movlpd qword [ebp - 0xd40], xmm0
movlpd qword [ebp - 0xd38], xmm0
mov dword [ebp - 0xd30], esi
movlpd qword [ebp - 0xd24], xmm0
mov dword [ebp - 0xd58], 0x3c
mov dword [ebp - 0xd44], 0x100
mov dword [ebp - 0xd28], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x402448
mov edx, str.Failed_to_parse_URL
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
push dword [ebp - 0xd60]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
mov dword [edi + 0x10], esi
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x42f253
mov byte [edi], 0
call fcn.004038a0
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x4023ff
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402789
push edx
push ecx
call fcn.0040804d
add esp, 8
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp edx, 0x10
jb 0x402769
mov ecx, dword [ebx + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40275f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402789
jmp 0x40275f
cmp dword [ebp - 0xd4c], 4
mov ecx, 0x1bb
push 0
push 0
push 3
push 0
mov eax, 0x50
push 0
cmove eax, ecx
movzx eax, ax
push eax
push dword [ebp - 0xd48]
push dword [ebp - 0xd60]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0xd64], ecx
test ecx, ecx
je 0x4026ad
push 0
push 0x80800000
push 0
push 0
push 0
push dword [ebp - 0xd2c]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0xd5c], eax
test eax, eax
je 0x402670
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0xd1c]
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
mov byte [ebp - 0xd1c], 0
call fcn.004038a0
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x20]
cmp dword [ebx + 0x34], 0x10
lea eax, [ebp - 0xd1c]
push dword [ebx + 0x30]
cmovae ecx, dword [ebx + 0x20]
cmp dword [ebp - 0xd08], 0x10
push ecx
push dword [ebp - 0xd0c]
cmovae eax, dword [ebp - 0xd1c]
push eax
push dword [ebp - 0xd5c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40262a
nop dword [eax + eax]
lea eax, [ebp - 0xcec]
push eax
push 0x7d0
lea eax, [ebp - 0x8e8]
push eax
push dword [ebp - 0xd5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4025cd
mov ecx, dword [ebp - 0xcf0]
mov eax, ecx
mov edi, dword [ebp - 0xcec]
sub eax, esi
push edi
cmp edi, eax
ja 0x402599
lea eax, [edi + esi]
cmp ecx, 0x10
mov dword [ebp - 0xcf4], eax
lea eax, [ebp - 0xd04]
cmovae eax, dword [ebp - 0xd04]
add esi, eax
lea eax, [ebp - 0x8e8]
push eax
push esi
call fcn.00409a00
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4025b9
lea eax, [ebp - 0x8e8]
mov byte [ebp - 0xd6c], 0
push eax
push dword [ebp - 0xd6c]
lea ecx, [ebp - 0xd04]
push edi
call fcn.00404e30
cmp dword [ebp - 0xcec], 0
jbe 0x4025e0
mov esi, dword [ebp - 0xcf4]
jmp 0x402530
mov edx, str.Error_reading_from_server
call fcn.00404ae0
push eax
call fcn.00404d90
add esp, 4
mov edi, dword [ebp - 0xd68]
push dword [ebp - 0xd5c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [ebp - 0xd08]
cmp edx, 0x10
jb 0x40269b
mov ecx, dword [ebp - 0xd1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402651
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40278e
jmp 0x402651
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.HttpSendRequestA_failed_with_error:
call fcn.00404ae0
add esp, 4
mov ecx, eax
call fcn.004029e0
push eax
call fcn.00404d90
add esp, 4
jmp 0x4025e6
push edx
push ecx
call fcn.0040804d
add esp, 8
push dword [ebp - 0xd64]
call esi
push dword [ebp - 0xd60]
call esi
jmp 0x402707
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.HttpOpenRequestA_failed_with_error:
call fcn.00404ae0
add esp, 4
mov ecx, eax
call fcn.004029e0
push eax
call fcn.00404d90
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push dword [ebp - 0xd64]
call esi
push dword [ebp - 0xd60]
call esi
jmp 0x402707
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.InternetConnectA_failed_with_error:
call fcn.00404ae0
add esp, 4
mov ecx, eax
call fcn.004029e0
push eax
call fcn.00404d90
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push dword [ebp - 0xd60]
call esi
jmp 0x402707
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.InternetOpenA_failed_with_error:
call fcn.00404ae0
add esp, 4
mov ecx, eax
call fcn.004029e0
push eax
call fcn.00404d90
add esp, 4
movups xmm0, xmmword [ebp - 0xd04]
mov edx, dword [ebx + 0x1c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xcf4]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x4023ff
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402789
jmp 0x4023f5
push edx
push ecx
call fcn.0040804d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408007
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040e1d0
call fcn.0040e1d0
int3