Function at 0x40a630
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, 0x4c2b60
call fcn.004aff88
mov dword [ebp - 0x34], 0xffffffff
mov edx, dword [ebp + 8]
cmp dword [edx + 0x30], 0
je 0x40a895
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x30]
call sub.WININET.DLL_InternetOpenUrlA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40a88e
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x44], 4
push 0
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x40]
push edx
push 0x13
push dword [ebp - 0x38]
call sub.WININET.DLL_HttpQueryInfoA
push 0x4c2ad2
lea ecx, [ebp - 0x40]
push ecx
call fcn.004afcc8
add esp, 8
test eax, eax
je 0x40a6c7
push 0x4c2ad6
lea eax, [ebp - 0x40]
push eax
call fcn.004afcc8
add esp, 8
test eax, eax
jne 0x40a87d
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp dword [ebp + 0x14], 0
jne 0x40a7a2
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
push 0x4c2ada
push dword [ebp - 0x54]
call fcn.004b1c28
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40a76e
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x54]
call fcn.004bb388
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00437924
mov dword [ebp - 0x48], eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
cmp dword [ebp - 0x48], 0
jle 0x40a76e
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x54]
call fcn.004bb388
inc dword [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
call fcn.00437938
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004bb554
push 0x4c2add
push dword [ebp - 0x54]
call fcn.004b1c28
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40a77d
mov dword [ebp - 0x34], 0xfffffffc
jmp 0x40a7a7
mov dword [ebp + 0x14], 0x19000
mov ecx, dword [ebp + 8]
push dword [ecx + 0x3c]
call fcn.004af288
pop ecx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x40a7a7
mov dword [ebp - 0x34], 0xfffffffb
jmp 0x40a7a7
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40a810
xor edx, edx
mov dword [ebp - 0x34], edx
jmp 0x40a7ec
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp + 0x14]
jl 0x40a7ec
cmp dword [ebp - 0x50], 0
je 0x40a810
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 1
push dword [ebp + 0x10]
call fcn.004b2040
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x4c]
push ecx
push dword [ebp - 0x38]
call sub.WININET.DLL_InternetReadFile
test eax, eax
je 0x40a810
cmp dword [ebp - 0x44], 0
jne 0x40a7b4
cmp dword [ebp - 0x50], 0
je 0x40a884
cmp dword [ebp - 0x4c], 0
jle 0x40a82f
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 1
push dword [ebp + 0x10]
call fcn.004b2040
add esp, 0x10
push dword [ebp - 0x50]
call fcn.004b18bc
pop ecx
cmp dword [ebp - 0x48], 0
jle 0x40a86c
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x54]
call fcn.004bb388
inc dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x48]
call fcn.00437938
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004bb554
cmp dword [ebp + 0x10], 0
je 0x40a884
push dword [ebp + 0x10]
call fcn.004af0b0
pop ecx
jmp 0x40a884
mov dword [ebp - 0x34], 0xfffffffd
push dword [ebp - 0x38]
call sub.WININET.DLL_InternetCloseHandle
jmp 0x40a895
mov dword [ebp - 0x34], 0xfffffffe
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret