Function at 0x4ec890
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 0x576e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x5f969c]
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.0053c870
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], bind
mov dword [ebp - 0x64], 0x3a98
lea ecx, [ebp - 0x38]
call fcn.00408982
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00408982
mov byte [ebp - 4], 1
mov ecx, 0x50
mov word [ebp - 0x480], cx
mov edx, dword [ebp + 8]
push edx
call fcn.0053c8ea
add esp, 4
test eax, eax
jne 0x4ec995
mov al, byte [ebp - 0x6d]
mov byte [ebp - 0x4a9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406210
mov al, byte [ebp - 0x4a9]
jmp 0x4eccfa
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.004061d0
mov dword [ebp - 0x4b8], eax
call fcn.004ecdb0
add esp, 0x28
mov byte [ebp - 0x4b9], al
movzx eax, byte [ebp - 0x4b9]
test eax, eax
jne 0x4eca06
mov cl, byte [ebp - 0x6d]
mov byte [ebp - 0x4b1], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406210
mov al, byte [ebp - 0x4b1]
jmp 0x4eccfa
mov dword [ebp - 0x14], 0x58af68
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 0x4eca64
jmp 0x4ecc9a
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x480]
push edx
lea ecx, [ebp - 0x38]
call fcn.00406410
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 0x4eca9d
jmp 0x4ecc9a
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 0x58ae34
lea ecx, [ebp - 0x60]
call fcn.00406410
push eax
push 0x58ae2c
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 0x4ecae5
jmp 0x4ecc9a
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0053c8ea
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 0x4ecb0d
jmp 0x4ecc9a
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 0x4ecb31
jmp 0x4ecc9a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c0], edx
cmp dword [ebp - 0x4c0], 0xc8
je 0x4ecb67
cmp dword [ebp - 0x4c0], 0x12c
jbe 0x4ecbf5
cmp dword [ebp - 0x4c0], 0x12f
jbe 0x4ecb6c
jmp 0x4ecbf5
jmp 0x4ecbfa
lea ecx, [ebp - 0x4a4]
call fcn.00408982
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 0x4ecbdf
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00408c03
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00406410
push eax
push 0x21
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4ecbdf
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00406410
push eax
call fcn.004ec890
add esp, 8
mov byte [ebp - 0x6d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.00406210
jmp 0x4ecc9a
jmp 0x4ecc9a
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 0x4ecc22
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x484], ecx
mov edx, 1
test edx, edx
je 0x4ecc9a
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 0x4ecc5f
cmp dword [ebp - 0x4a8], 0
jne 0x4ecc65
mov byte [ebp - 0x6d], 1
jmp 0x4ecc9a
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.004ecd20
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x484]
jb 0x4ecc98
mov byte [ebp - 0x6d], 1
jmp 0x4ecc9a
jmp 0x4ecc22
cmp dword [ebp - 0x7c], 0
je 0x4eccaa
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x488], 0
je 0x4eccc0
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x68], 0
je 0x4eccd0
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.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406210
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.0053c85d
mov esp, ebp
pop ebp
ret