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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, 0x4c79f0
call fcn.004b66dc
mov dword [ebp - 0x34], 0xffffffff
mov edx, dword [ebp + 8]
cmp dword [edx + 0x30], 0
je 0x40ba65
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 0x40ba5e
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 0x4c7962
lea ecx, [ebp - 0x40]
push ecx
call fcn.004b641c
add esp, 8
test eax, eax
je 0x40b897
push 0x4c7966
lea eax, [ebp - 0x40]
push eax
call fcn.004b641c
add esp, 8
test eax, eax
jne 0x40ba4d
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp dword [ebp + 0x14], 0
jne 0x40b972
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
push 0x4c796a
push dword [ebp - 0x54]
call fcn.004b837c
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40b93e
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x54]
call fcn.004c1820
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043bb88
mov dword [ebp - 0x48], eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
cmp dword [ebp - 0x48], 0
jle 0x40b93e
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x54]
call fcn.004c1820
inc dword [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
call fcn.0043bb9c
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c1a34
push 0x4c796d
push dword [ebp - 0x54]
call fcn.004b837c
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40b94d
mov dword [ebp - 0x34], 0xfffffffc
jmp 0x40b977
mov dword [ebp + 0x14], 0x19000
mov ecx, dword [ebp + 8]
push dword [ecx + 0x3c]
call fcn.004b59dc
pop ecx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x40b977
mov dword [ebp - 0x34], 0xfffffffb
jmp 0x40b977
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40b9e0
xor edx, edx
mov dword [ebp - 0x34], edx
jmp 0x40b9bc
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 0x40b9bc
cmp dword [ebp - 0x50], 0
je 0x40b9e0
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 1
push dword [ebp + 0x10]
call fcn.004b8794
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 0x40b9e0
cmp dword [ebp - 0x44], 0
jne 0x40b984
cmp dword [ebp - 0x50], 0
je 0x40ba54
cmp dword [ebp - 0x4c], 0
jle 0x40b9ff
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 1
push dword [ebp + 0x10]
call fcn.004b8794
add esp, 0x10
push dword [ebp - 0x50]
call fcn.004b8010
pop ecx
cmp dword [ebp - 0x48], 0
jle 0x40ba3c
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x54]
call fcn.004c1820
inc dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x48]
call fcn.0043bb9c
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004c1a34
cmp dword [ebp + 0x10], 0
je 0x40ba54
push dword [ebp + 0x10]
call fcn.004b5804
pop ecx
jmp 0x40ba54
mov dword [ebp - 0x34], 0xfffffffd
push dword [ebp - 0x38]
call sub.WININET.DLL_InternetCloseHandle
jmp 0x40ba65
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