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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x406184
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0x406194
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x40614f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0
je 0x406138
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00405e10
mov edx, dword [ebp - 0x20]
mov eax, 0x4061a4
call fcn.00403db8
mov ebx, eax
test ebx, ebx
je 0x405fe9
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403ad0
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x20]
call fcn.00403d30
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00403d30
mov edx, 0x50
mov eax, dword [ebp - 0x28]
call fcn.00405df4
mov ebx, eax
jmp 0x405fee
mov ebx, 0x50
push 0
push 0
push 3
push 0
push 0
push ebx
mov eax, dword [ebp - 0x20]
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
mov eax, 0x4061a8
mov dword [ebp - 0x2c], eax
push 0
push 0x80000000
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x4061b4
mov eax, dword [ebp - 0x24]
call fcn.00403cd0
push eax
push 0x4061c0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00403ad0
push eax
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
push 0x2f
push 0x4061c8
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x400
mov eax, dword [ebp - 0x30]
call fcn.00402518
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x406138
xor eax, eax
push ebp
push 0x406131
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x436]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x18], 0
je 0x406101
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x436], 0
lea eax, [ebp - 0x43c]
lea edx, [ebp - 0x436]
mov ecx, 0x402
call fcn.00403ab8
mov edx, dword [ebp - 0x43c]
lea eax, [ebp - 0x1c]
call fcn.00403ad8
jmp 0x4060aa
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00403db8
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406138
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406156
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret