Function at 0x451220
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 0x52277b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x580ca0]
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.004ba280
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.004b9ddb
add esp, 4
test eax, eax
jne 0x451325
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 0x45168a
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.00451740
add esp, 0x28
mov byte [ebp - 0x4b9], al
movzx eax, byte [ebp - 0x4b9]
test eax, eax
jne 0x451396
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 0x45168a
mov dword [ebp - 0x14], 0x52e978
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 0x4513f4
jmp 0x45162a
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 0x45142d
jmp 0x45162a
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 0x52e844
lea ecx, [ebp - 0x60]
call fcn.00401340
push eax
push 0x52e83c
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 0x451475
jmp 0x45162a
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004b9ddb
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 0x45149d
jmp 0x45162a
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 0x4514c1
jmp 0x45162a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c0], edx
cmp dword [ebp - 0x4c0], 0xc8
je 0x4514f7
cmp dword [ebp - 0x4c0], 0x12c
jbe 0x451585
cmp dword [ebp - 0x4c0], 0x12f
jbe 0x4514fc
jmp 0x451585
jmp 0x45158a
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 0x45156f
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 0x45156f
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00401340
push eax
call fcn.00451220
add esp, 8
mov byte [ebp - 0x6d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.00401320
jmp 0x45162a
jmp 0x45162a
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 0x4515b2
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x484], ecx
mov edx, 1
test edx, edx
je 0x45162a
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 0x4515ef
cmp dword [ebp - 0x4a8], 0
jne 0x4515f5
mov byte [ebp - 0x6d], 1
jmp 0x45162a
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.004516b0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x484]
jb 0x451628
mov byte [ebp - 0x6d], 1
jmp 0x45162a
jmp 0x4515b2
cmp dword [ebp - 0x7c], 0
je 0x45163a
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x488], 0
je 0x451650
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x68], 0
je 0x451660
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.004ba1db
mov esp, ebp
pop ebp
ret