Function at 0x404d2c
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1868
call fcn.0051cee0
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0xfff
mov dword [ebp - 0x1824], eax
lea eax, [ebp - 0x1803]
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x1804], bl
call fcn.0051b3c0
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.0051b3c0
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x1868]
push ebx
push eax
call fcn.0051b3c0
lea eax, [ebp - 0x1804]
mov dword [ebp - 0x183c], eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x1858], eax
add esp, 0x24
mov eax, 0x1bb
mov word [ebp - 0x1850], ax
lea eax, [ebp - 0x1868]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x1838], 0x1000
mov dword [ebp - 0x1854], 0x400
mov dword [ebp - 0x1868], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push ebx
push 0x56bc6c
mov dword [ebp - 0x1810], ebx
xor edi, edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Internetopen
mov dword [ebp - 0x180c], eax
call esi
cmp dword [ebp - 0x180c], ebx
je 0x404f69
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x1850]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x180c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1810], eax
cmp eax, ebx
je 0x404f69
push ebx
push 0x84c00100
lea ecx, [ebp - 0x182c]
push ecx
push ebx
push str.HTTP_1.1
lea ecx, [ebp - 0x1804]
push ecx
push ebx
push eax
mov dword [ebp - 0x182c], 0x56c6c8
mov dword [ebp - 0x1828], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x404f69
push 0x56c6d8
call esi
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x56c6ec
mov dword [ebp - 0x1820], eax
call esi
cmp dword [ebp - 0x1820], ebx
je 0x404f69
push ebx
lea eax, [ebp - 0x1818]
push eax
lea eax, [ebp - 0x1814]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x1814], ebx
mov dword [ebp - 0x1818], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404f69
push 0x56c700
call esi
cmp dword [ebp - 0x1814], 0xc8
jne 0x404f07
mov dword [ebp - 0x1818], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1808], ebx
lea eax, [ebp - 0x1808]
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404f61
push str.block_read
call esi
mov dword [ebp - 0x181c], 1
cmp dword [ebp - 0x1808], ebx
je 0x404f69
push dword [ebp - 0x1808]
mov ecx, dword [ebp - 0x1824]
lea eax, [ebp - 0x804]
call fcn.00406fa6
cmp dword [ebp - 0x1808], ebx
jne 0x404f13
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x1810]
call esi
push dword [ebp - 0x180c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x181c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret