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

Disassembly:
push 0xffffffffffffffff
push 0x524868
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x1c], ebp
jne 0x48314f
cmp dword [esi + 0x10], 0xc8
jne 0x48314f
cmp dword [esi + 0x18], ebp
je 0x482f82
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x483117
jmp 0x482f8c
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0xc]
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x482fca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4830d1
push str.Downloading_data..._n
push ebp
push esi
call fcn.004828a0
add esp, 0xc
mov dword [esi + 0x18], 1
jmp 0x482f61
cmp dword [esp + 0x14], ebp
je 0x48314f
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esi + 0x18], ebp
je 0x482ffd
push eax
push str.Downloaded__lu_bytes._n
push ebp
push esi
call fcn.004828a0
mov eax, dword [esp + 0x24]
add esp, 0x10
mov edi, vtable.CBinData.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ebp
call fcn.00439e40
test eax, eax
je 0x4830ef
cmp dword [esi + 0x18], ebp
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
je 0x48305a
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x483102
mov dword [esi + 0x18], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x48311b
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp edi, ebp
je 0x48312e
push edi
push str.Read__lu_bytes._n
push ebp
push esi
call fcn.004828a0
mov ecx, dword [esp + 0x50]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x28], edi
call fcn.00439f30
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x20], vtable.CBinData.0
call fcn.004b1a59
add esp, 4
jmp 0x482f61
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Download_request_timed_out._n
push ebp
push esi
call fcn.004828a0
add esp, 0xc
mov dword [esi + 0x18], ebp
jmp 0x48314f
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], edi
call fcn.004b1a59
add esp, 4
jmp 0x48314f
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x20], vtable.CBinData.0
call fcn.004b1a59
add esp, 4
xor eax, eax
jmp 0x483154
push str.Read_request_timed_out._n
push ebp
push esi
call fcn.004828a0
mov edx, dword [esp + 0x2c]
push edx
jmp 0x48313f
push str.Download_complete._n
push ebp
push esi
call fcn.004828a0
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x2c], vtable.CBinData.0
call fcn.004b1a59
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8