Function at 0x404c50
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0xf4
mov dword [ebp - 0xa4], 0x4bd9f0
mov dword [ebp - 0xa0], 0x4be7e2
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x98], 0x404fae
mov dword [ebp - 0x94], esp
mov dword [esp], eax
call fcn.00414b70
lea eax, [ebp - 0x70]
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 5
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call dword [sym.imp.WININET.DLL_HttpQueryInfoW]
sub esp, 0x14
test eax, eax
mov dword [ebp - 0xd0], 0
mov byte [ebp - 0xc9], 0
jne 0x404f24
mov dword [ebp - 0xc8], 0
mov esi, esi
lea edi, [edi]
lea eax, [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call dword [sym.imp.WININET.DLL_InternetQueryDataAvailable]
sub esp, 0x10
test eax, eax
je 0x404ef1
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [ebp - 0xc4], eax
jne 0x404e10
movzx edx, byte [ebp - 0xc9]
mov ecx, dword [ebp - 0xc8]
xor edx, 1
cmp dword [ebp - 0xd0], ecx
sete al
or dl, al
mov byte [ebp - 0xc4], dl
je 0x404ef1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404ef8
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call fcn.00404ab0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x58]
lea ecx, [edx + 8]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax]
cmp edx, ebx
je 0x404f75
cmp eax, ecx
je 0x404f5f
mov ebx, dword [ebp + 0xc]
test eax, eax
mov dword [ebx], edx
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 8]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [ebx + 8], edx
je 0x404ef8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], ecx
lea ebx, [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x5c], 0
mov word [eax], dx
cmp eax, ebx
je 0x404ef8
mov dword [esp], eax
call fcn.004bcd30
jmp 0x404ef8
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call fcn.004bcd80
mov ecx, dword [ebp - 0xc4]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0xc0], eax
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x60]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 2
call dword [sym.imp.WININET.DLL_InternetReadFile]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0xc4], eax
je 0x404ed5
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404ed5
mov edx, 0x7fffffff
sub edx, dword [ebp - 0x74]
add dword [ebp - 0xc8], eax
cmp eax, edx
ja 0x404f98
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0xb8], 2
call fcn.004a5c50
mov eax, dword [ebp - 0xc0]
sub esp, 8
mov dword [esp], eax
call fcn.004bcd30
jmp 0x404d10
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.004bcd30
mov ebx, dword [ebp - 0xc4]
test ebx, ebx
jne 0x404d59
mov byte [ebp - 0xc4], 0
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x404f0a
mov dword [esp], eax
call fcn.004bcd30
lea eax, [ebp - 0xbc]
mov dword [esp], eax
call fcn.00414c00
movzx eax, byte [ebp - 0xc4]
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd0], eax
mov dword [esp], eax
call fcn.004a5ab0
sub esp, 4
mov byte [ebp - 0xc9], 1
jmp 0x404cfd
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 8], eax
jmp 0x404ef8
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], 0
call fcn.004a8c50
mov eax, dword [ebp - 0x60]
sub esp, 4
jmp 0x404dea
mov dword [esp], 0x4c35d2
mov dword [ebp - 0xb8], 2
call fcn.004b4f50
add ebp, 8
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x404fdc
cmp eax, 1
je 0x404fce
ud2
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.004bcd30
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x404fee
mov dword [esp], eax
call fcn.004bcd30
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov dword [ebp - 0xb8], 0xffffffff
call fcn.00414f00
lea esi, [esi]
lea edi, [edi]