Function at 0x40bf20
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x38], 0x3fa00
mov byte [ebp - 0x3d], 0
mov eax, dword [0x483038]
add eax, 1
mov dword [0x483038], eax
push 0
push 0
push 0
push 0
push 0x444f58
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40c136
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040be30
add esp, 4
movzx edx, al
test edx, edx
je 0x40c11f
push 0
push 0x84000000
mov eax, dword [0x458684]
push eax
call fcn.004361fa
add esp, 4
push eax
mov ecx, dword [0x458684]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040c140
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x40c11f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0040be80
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bfdb
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040be80
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c106
push 0x28
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.00435620
add esp, 0xc
mov dword [ebp - 0x34], 0x28
push 0x3fa00
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x40c106
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 4]
jae 0x40c0e8
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x48]
cmp ecx, 0x3fa00
jae 0x40c048
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x54], edx
jmp 0x40c04f
mov dword [ebp - 0x54], 0x3fa00
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
push 0
push 8
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40c0e1
cmp dword [ebp - 0x48], 0
jne 0x40c0a3
cmp dword [ebp - 0x1c], 0
jbe 0x40c0a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0040bed0
add esp, 4
movzx edx, al
test edx, edx
jne 0x40c0a3
mov dword [ebp - 0x48], 0
jmp 0x40c0e8
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov ecx, 1
test ecx, ecx
je 0x40c0df
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [ebp + 0x10]
add esp, 0x14
movzx ecx, al
test ecx, ecx
jne 0x40c0df
mov dword [ebp - 0x48], 0
jmp 0x40c0e8
jmp 0x40c0e3
jmp 0x40c0e8
jmp 0x40c023
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 4]
jne 0x40c0f4
mov byte [ebp - 0x3d], 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.004355bc
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x40c11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x40c136
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x3d]
mov esp, ebp
pop ebp
ret