Function at 0x40a360
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
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 0x47320b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x47c], 0
push 0x3ff
push 0
lea eax, [ebp - 0x47b]
push eax
call fcn.00421750
add esp, 0xc
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x484], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x74], SysStringLen
mov dword [ebp - 0x64], 0x3a98
lea ecx, [ebp - 0x38]
call fcn.004049e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004049e0
mov byte [ebp - 4], 1
mov ecx, 0x50
mov word [ebp - 0x480], cx
mov edx, dword [ebp + 8]
push edx
call fcn.00421b8c
add esp, 4
test eax, eax
jne 0x40a465
mov al, byte [ebp - 0x6d]
mov byte [ebp - 0x4a9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404a50
mov al, byte [ebp - 0x4a9]
jmp 0x40a7ca
lea ecx, [ebp - 0x480]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x38]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4b0], esp
mov edx, dword [ebp + 8]
push edx
call fcn.0040bb00
mov dword [ebp - 0x4b8], eax
call fcn.0040a880
add esp, 0x28
mov byte [ebp - 0x4b9], al
movzx eax, byte [ebp - 0x4b9]
test eax, eax
jne 0x40a4d6
mov cl, byte [ebp - 0x6d]
mov byte [ebp - 0x4b1], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404a50
mov al, byte [ebp - 0x4b1]
jmp 0x40a7ca
mov dword [ebp - 0x14], str._r_n_r_n
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:14.0__Gecko_20100101_Firefox_14.0.1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x7c], eax
push 4
lea edx, [ebp - 0x64]
push edx
push 2
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x64]
push ecx
push 8
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x64]
push eax
push 7
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp - 0x7c], 0
jne 0x40a534
jmp 0x40a76a
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x480]
push edx
lea ecx, [ebp - 0x38]
call fcn.00404e40
push eax
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
jne 0x40a56d
jmp 0x40a76a
mov dword [ebp - 0x44], str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_n
mov dword [ebp - 0x40], 0
push 0
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push 0x478818
lea ecx, [ebp - 0x60]
call fcn.00404e40
push eax
push 0x478810
mov eax, dword [ebp - 0x488]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x40a5b5
jmp 0x40a76a
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00421b8c
add esp, 4
push eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40a5dd
jmp 0x40a76a
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40a601
jmp 0x40a76a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c0], edx
cmp dword [ebp - 0x4c0], 0xc8
je 0x40a637
cmp dword [ebp - 0x4c0], 0x12c
jbe 0x40a6c5
cmp dword [ebp - 0x4c0], 0x12f
jbe 0x40a63c
jmp 0x40a6c5
jmp 0x40a6ca
lea ecx, [ebp - 0x4a4]
call fcn.004049e0
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x21
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40a6af
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00404a90
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00404e40
push eax
push 0x21
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40a6af
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00404e40
push eax
call fcn.0040a360
add esp, 8
mov byte [ebp - 0x6d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.00404a50
jmp 0x40a76a
jmp 0x40a76a
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x6c]
push edx
push 0x20000005
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40a6f2
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x484], ecx
mov edx, 1
test edx, edx
je 0x40a76a
mov dword [ebp - 0x4a8], 0
lea eax, [ebp - 0x4a8]
push eax
push 0x400
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40a72f
cmp dword [ebp - 0x4a8], 0
jne 0x40a735
mov byte [ebp - 0x6d], 1
jmp 0x40a76a
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x4a8]
push ecx
lea edx, [ebp - 0x47c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040a7f0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x484]
jb 0x40a768
mov byte [ebp - 0x6d], 1
jmp 0x40a76a
jmp 0x40a6f2
cmp dword [ebp - 0x7c], 0
je 0x40a77a
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x488], 0
je 0x40a790
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x68], 0
je 0x40a7a0
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov cl, byte [ebp - 0x6d]
mov byte [ebp - 0x4b2], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404a50
mov al, byte [ebp - 0x4b2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret