Function at 0x404cb7
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3cc]
push ebx
push esi
mov esi, dword [ebp + 0x3c8]
push edi
xor edi, edi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x3d0]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x64], edi
call fcn.004036ee
push esi
lea ecx, [ebp - 0x80]
call fcn.00404c24
test eax, eax
je 0x404efb
push edi
mov ebx, 0x4097b4
push ebx
push ebx
push edi
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x54], eax
je 0x404efb
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x5c]
push eax
push 2
push dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0x2710
call esi
test eax, eax
je 0x404efb
push 4
lea eax, [ebp - 0x5c]
push eax
push 6
push dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0x1388
call esi
test eax, eax
je 0x404efb
mov esi, dword [ebp - 0x80]
cmp esi, edi
jne 0x404d8a
xor ecx, ecx
xor eax, eax
jmp 0x404d91
movzx ecx, word [ebp - 0x70]
mov eax, dword [ebp - 0x78]
push edi
push edi
push 3
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [ebp - 0x58], eax
je 0x404efb
push edi
push 0x84000000
push edi
neg esi
push edi
sbb esi, esi
and esi, dword [ebp - 0x74]
push edi
push esi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [ebp - 0x4c], eax
je 0x404efb
push 0xa0000000
mov esi, str.Connection:_Close
push esi
call fcn.0040785b
pop ecx
push eax
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push edi
push edi
push edi
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x404efb
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 4
pop ebx
push edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x20000013
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
call esi
test eax, eax
je 0x404efb
mov eax, dword [ebp - 0x68]
cmp eax, 0xc8
je 0x404e3f
or eax, 0x80190000
mov ebx, eax
jmp 0x404ef3
push edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x20000005
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
call esi
test eax, eax
je 0x404efb
mov ecx, dword [ebp - 0x60]
push edi
push dword [ebp - 0x50]
call fcn.004025d1
mov ecx, dword [ebp - 0x60]
push edi
push edi
push edi
call fcn.0040259c
mov ebx, dword [ebp - 0x6c]
cmp ebx, edi
je 0x404e90
mov eax, dword [ebx]
push edi
push dword [ebp - 0x50]
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x404e90
mov ebx, 0x80004004
jmp 0x404f02
lea eax, [ebp - 0x48]
push eax
push 0x400
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404efb
cmp dword [ebp - 0x48], edi
je 0x404ef1
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x64]
lea ecx, [esi + eax]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jbe 0x404ec4
sub eax, esi
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x60]
push edi
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.0040256d
add esi, dword [ebp - 0x48]
cmp ebx, edi
mov dword [ebp - 0x64], esi
je 0x404eec
mov eax, dword [ebx]
push esi
push dword [ebp - 0x50]
mov ecx, ebx
call dword [eax]
test eax, eax
je 0x404e89
cmp esi, dword [ebp - 0x50]
jb 0x404e90
xor ebx, ebx
cmp ebx, 0x80004005
jne 0x404f02
call fcn.004022b2
mov ebx, eax
cmp dword [ebp - 0x4c], edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x404f12
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x58], edi
je 0x404f1c
push dword [ebp - 0x58]
call esi
cmp dword [ebp - 0x54], edi
je 0x404f26
push dword [ebp - 0x54]
call esi
lea ecx, [ebp - 0x80]
call fcn.0040371a
mov ecx, dword [ebp + 0x3bc]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040781b
add ebp, 0x3c0
leave
ret 0xc