Function at 0x40c270
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], 0x41caa0
mov dword [ebp - 0x50], 0x41d280
mov dword [ebp - 0x48], 0x40c6b1
call fcn.00418ac0
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 0x40c334
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.004029a0
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00418a60
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.004037b0
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], 0x422da8
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], 0x422dac
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 0x40c427
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.004029a0
cmp dword [ebp - 0x88], 0xfffffffd
jbe 0x40c676
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c40d
mov dword [esp], eax
call fcn.0041bd20
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x40c322
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 0x40c550
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.0040aa70
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call fcn.0040a960
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x40c582
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x70]
jmp 0x40c4bb
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x70], 1
mov edx, dword [ebp - 0x70]
cmp edx, dword [eax + 4]
jge 0x40c582
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.00402550
test eax, eax
jne 0x40c4a8
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], 0x422d2c
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.004026c0
test eax, eax
je 0x40c4a8
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.00402d30
jmp 0x40c5aa
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x40c467
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.004029a0
jmp 0x40c3f1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [esp + 4], 0x422d2f
mov dword [esp], eax
mov dword [ebp - 0x68], 3
call fcn.00402d30
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], 2
mov dword [esp], eax
call fcn.004025c0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40c5d1
mov dword [esp], eax
call fcn.0041bd20
mov edx, dword [ebp - 0x8c]
mov eax, 1
test edx, edx
je 0x40c5e6
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.004029a0
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 0x40c693
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.00402d30
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40c676
mov dword [esp], eax
call fcn.0041bd20
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x68], 4
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x40c3fe
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x40c641
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041a760
jmp 0x40c667