Function at 0x40c080
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
lea eax, [ebp - 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
mov dword [ebp - 0x44], esp
mov dword [ebp - 0x54], 0x41e9c0
mov dword [ebp - 0x50], 0x41f190
mov dword [ebp - 0x48], 0x40c4c1
call fcn.0041a840
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 0xc], eax
movzx eax, word [edx + 0x68]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], eax
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 0x78], eax
sub eax, 1
sub esp, 0x20
cmp eax, 0xfffffffd
mov dword [ebp - 0x80], eax
jbe 0x40c144
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x68], 5
call fcn.004029c0
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.0041a7e0
mov eax, dword [ebp + 8]
leave
ret 4
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov dword [esp], eax
mov dword [ebp - 0x68], 5
add edx, 0x58
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
add edx, 0x50
mov dword [esp + 4], edx
call fcn.004037d0
sub esp, 4
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x424da4
mov dword [ebp - 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x424da8
mov dword [esp], edx
mov dword [ebp - 0x68], 4
call sub.WININET.DLL_HttpOpenRequestA
mov dword [ebp - 0x84], eax
sub eax, 1
sub esp, 0x20
cmp eax, 0xfffffffd
mov dword [ebp - 0x88], eax
jbe 0x40c237
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x68], 3
call fcn.004029c0
cmp dword [ebp - 0x88], 0xfffffffd
jbe 0x40c486
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c21d
mov dword [esp], eax
call fcn.0041dc40
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x40c132
mov edx, dword [ebp - 0x84]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [ebp - 0x68], 3
call sub.WININET.DLL_HttpSendRequestA
sub esp, 0x14
test eax, eax
je 0x40c360
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], 3
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040a880
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.0040a770
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x40c392
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x70]
jmp 0x40c2cb
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x70], 1
mov edx, dword [ebp - 0x70]
cmp edx, dword [eax + 4]
jge 0x40c392
shl edx, 2
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x70]
mov eax, dword [eax + edx*4]
mov dword [esp], str.Content_Length
mov dword [ebp - 0x68], 3
mov dword [ebp - 0x74], eax
call sub.KERNEL32.dll_lstrlenA
mov edx, dword [ebp - 0x74]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.Content_Length
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.00402570
test eax, eax
jne 0x40c2b8
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], 0x424d28
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x7c]
mov eax, dword [eax + edx]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.004026e0
test eax, eax
je 0x40c2b8
add eax, 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [esp], eax
call fcn.00402d50
jmp 0x40c3ba
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x40c277
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004029c0
jmp 0x40c201
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [esp + 4], 0x424d2b
mov dword [esp], eax
mov dword [ebp - 0x68], 3
call fcn.00402d50
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], 2
mov dword [esp], eax
call fcn.004025e0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40c3e1
mov dword [esp], eax
call fcn.0041dc40
mov edx, dword [ebp - 0x8c]
mov eax, 1
test edx, edx
je 0x40c3f6
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [esp], eax
mov dword [ebp - 0x68], 3
call fcn.004029c0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x84]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x68], 1
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
je 0x40c4a3
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [edx], 0
mov dword [esp], edx
mov dword [ebp - 0x68], 1
mov dword [esp + 4], eax
call fcn.00402d50
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40c486
mov dword [esp], eax
call fcn.0041dc40
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x68], 4
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x40c20e
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x40c451
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041c680
jmp 0x40c477