Function at 0x404f80
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4450f6
mov eax, dword fs:[0]
push eax
sub esp, 0xd58
mov eax, dword [0x45d074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xd60], edi
mov dword [ebp - 0xd5c], edi
mov dword [ebp - 0xd5c], 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 - 0xd58], eax
mov dword [ebp - 0xcec], esi
mov dword [ebp - 0xce8], 0xf
mov byte [ebp - 0xcfc], 0
mov byte [ebp - 4], 2
test eax, eax
je 0x4053ca
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0xd40], eax
lea ecx, [ebp - 0xd50]
push ecx
lea eax, [ebp - 0xce0]
mov dword [ebp - 0xd44], esi
mov dword [ebp - 0xd24], eax
xorps xmm0, xmm0
push esi
lea eax, [ebp + 8]
movlpd qword [ebp - 0xd4c], xmm0
cmovae eax, dword [ebp + 8]
push esi
push eax
movlpd qword [ebp - 0xd38], xmm0
movlpd qword [ebp - 0xd30], xmm0
mov dword [ebp - 0xd28], esi
movlpd qword [ebp - 0xd1c], xmm0
mov dword [ebp - 0xd50], 0x3c
mov dword [ebp - 0xd3c], pe_nt_image_headers32
mov dword [ebp - 0xd20], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x405144
mov edx, str.Failed_to_parse_URL
call fcn.004125f0
push eax
call fcn.004128b0
add esp, 4
push dword [ebp - 0xd58]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
mov dword [edi + 0x10], esi
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x454f53
mov byte [edi], 0
call fcn.0040f2f0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4050fb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40546a
push edx
push ecx
call fcn.004230a3
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40544d
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40546a
jmp 0x405443
cmp dword [ebp - 0xd44], 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 - 0xd40]
push dword [ebp - 0xd58]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0xd5c], ecx
test ecx, ecx
je 0x405399
push 0
push 0x80800000
push 0
push 0
push 0
push dword [ebp - 0xd24]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0xd54], eax
test eax, eax
je 0x405360
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0xd14]
mov dword [ebp - 0xd04], 0
mov dword [ebp - 0xd00], 0xf
mov byte [ebp - 0xd14], 0
call fcn.0040f2f0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp - 0xd14]
push dword [ebp + 0x30]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp - 0xd00], 0x10
push ecx
push dword [ebp - 0xd04]
cmovae eax, dword [ebp - 0xd14]
push eax
push dword [ebp - 0xd54]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40531e
lea eax, [ebp - 0xce4]
push eax
push 0x7d0
lea eax, [ebp - 0x8e0]
push eax
push dword [ebp - 0xd54]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4052c1
mov ecx, dword [ebp - 0xce8]
mov eax, ecx
mov edi, dword [ebp - 0xce4]
sub eax, esi
push edi
cmp edi, eax
ja 0x40528d
lea eax, [edi + esi]
cmp ecx, 0x10
mov dword [ebp - 0xcec], eax
lea eax, [ebp - 0xcfc]
cmovae eax, dword [ebp - 0xcfc]
add esi, eax
lea eax, [ebp - 0x8e0]
push eax
push esi
call fcn.004249e0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4052ad
lea eax, [ebp - 0x8e0]
mov byte [ebp - 0xd64], 0
push eax
push dword [ebp - 0xd64]
lea ecx, [ebp - 0xcfc]
push edi
call fcn.00413a70
cmp dword [ebp - 0xce4], 0
jbe 0x4052d4
mov esi, dword [ebp - 0xcec]
jmp 0x405224
mov edx, str.Error_reading_from_server
call fcn.004125f0
push eax
call fcn.004128b0
add esp, 4
mov edi, dword [ebp - 0xd60]
push dword [ebp - 0xd54]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [ebp - 0xd00]
cmp edx, 0x10
jb 0x405387
mov ecx, dword [ebp - 0xd14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405341
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40546f
jmp 0x405341
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.HttpSendRequestA_failed_with_error:
call fcn.004125f0
mov ecx, eax
call fcn.0040cfd0
push eax
call fcn.004128b0
add esp, 4
jmp 0x4052da
push edx
push ecx
call fcn.004230a3
add esp, 8
push dword [ebp - 0xd5c]
call esi
push dword [ebp - 0xd58]
call esi
jmp 0x4053eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.HttpOpenRequestA_failed_with_error:
call fcn.004125f0
mov ecx, eax
call fcn.0040cfd0
push eax
call fcn.004128b0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push dword [ebp - 0xd5c]
call esi
push dword [ebp - 0xd58]
call esi
jmp 0x4053eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.InternetConnectA_failed_with_error:
call fcn.004125f0
mov ecx, eax
call fcn.0040cfd0
push eax
call fcn.004128b0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push dword [ebp - 0xd58]
call esi
jmp 0x4053eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.InternetOpenA_failed_with_error:
call fcn.004125f0
mov ecx, eax
call fcn.0040cfd0
push eax
call fcn.004128b0
add esp, 4
movups xmm0, xmmword [ebp - 0xcfc]
mov edx, dword [ebp + 0x1c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xcec]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x4050fb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40546a
jmp 0x4050f1
push edx
push ecx
call fcn.004230a3
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 - 0x10]
xor ecx, ebp
call fcn.00422e0c
mov esp, ebp
pop ebp
ret
call fcn.0042fe3b
call fcn.0042fe3b
int3