Function at 0x450020
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 0x50e99b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x568cb8]
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.004b83b0
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], connect
mov dword [ebp - 0x64], 0x3a98
lea ecx, [ebp - 0x38]
call fcn.004012b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004012b0
mov byte [ebp - 4], 1
mov ecx, 0x50
mov word [ebp - 0x480], cx
mov edx, dword [ebp + 8]
push edx
call fcn.004b7f07
add esp, 4
test eax, eax
jne 0x450125
mov al, byte [ebp - 0x6d]
mov byte [ebp - 0x4a9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401320
mov al, byte [ebp - 0x4a9]
jmp 0x45048a
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.004012e0
mov dword [ebp - 0x4b8], eax
call fcn.00450540
add esp, 0x28
mov byte [ebp - 0x4b9], al
movzx eax, byte [ebp - 0x4b9]
test eax, eax
jne 0x450196
mov cl, byte [ebp - 0x6d]
mov byte [ebp - 0x4b1], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401320
mov al, byte [ebp - 0x4b1]
jmp 0x45048a
mov dword [ebp - 0x14], 0x519850
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 0x4501f4
jmp 0x45042a
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x480]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401340
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 0x45022d
jmp 0x45042a
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 0x51971c
lea ecx, [ebp - 0x60]
call fcn.00401340
push eax
push 0x519714
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 0x450275
jmp 0x45042a
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004b7f07
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 0x45029d
jmp 0x45042a
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 0x4502c1
jmp 0x45042a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c0], edx
cmp dword [ebp - 0x4c0], 0xc8
je 0x4502f7
cmp dword [ebp - 0x4c0], 0x12c
jbe 0x450385
cmp dword [ebp - 0x4c0], 0x12f
jbe 0x4502fc
jmp 0x450385
jmp 0x45038a
lea ecx, [ebp - 0x4a4]
call fcn.004012b0
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 0x45036f
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00401380
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00401340
push eax
push 0x21
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x45036f
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00401340
push eax
call fcn.00450020
add esp, 8
mov byte [ebp - 0x6d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.00401320
jmp 0x45042a
jmp 0x45042a
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 0x4503b2
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x484], ecx
mov edx, 1
test edx, edx
je 0x45042a
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 0x4503ef
cmp dword [ebp - 0x4a8], 0
jne 0x4503f5
mov byte [ebp - 0x6d], 1
jmp 0x45042a
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.004504b0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x484]
jb 0x450428
mov byte [ebp - 0x6d], 1
jmp 0x45042a
jmp 0x4503b2
cmp dword [ebp - 0x7c], 0
je 0x45043a
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x488], 0
je 0x450450
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x68], 0
je 0x450460
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.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401320
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.004b8307
mov esp, ebp
pop ebp
ret