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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov eax, dword [ebx + 0x6c]
mov ebp, eax
and ebp, 8
jne 0x7039c970
test al, 0x80
je 0x7039c950
test esi, esi
je 0x7039cb18
mov edi, dword [sym.imp.wininet.dll_InternetReadFile]
jmp 0x7039c858
test eax, eax
je 0x7039c8f3
cmp ebp, esi
jae 0x7039c93d
mov edx, dword [ebx + 0x7c]
test edx, edx
je 0x7039ca00
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, ebp
cmp eax, edx
cmova eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
add eax, ebp
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
je 0x7039ca18
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x7039c990
mov ecx, dword [ebx + 0x74]
add ebp, edx
mov eax, dword [ebx + 0x7c]
add ecx, edx
sub eax, edx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x7c], eax
test byte [0x703d83a0], 8
je 0x7039c848
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.current_position__ld__available_bytes__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 4], 0x703d83a0
mov dword [esp], 3
call fcn.7039c480
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x7039c850
and dword [ebx + 0x6c], 0xfffffffe
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], eax
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
sub esp, 0x10
test eax, eax
je 0x7039caac
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x7039c990
mov dword [ebx + 0x7c], eax
cmp ebp, esi
jb 0x7039c858
xor edx, edx
mov eax, dword [esp + 0x6c]
mov dword [eax], ebp
mov eax, dword [ebx + 0x6c]
or eax, 1
jmp 0x7039c9ed
test al, 1
je 0x7039c95f
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x7039c835
mov eax, dword [esp + 0x6c]
mov edx, 0x8000000a
mov dword [eax], ebp
jmp 0x7039c97f
mov eax, dword [esp + 0x6c]
mov edx, 1
mov dword [eax], 0
add esp, 0x4c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
or dword [ebx + 0x6c], 8
mov eax, ebx
call fcn.7039c3a0
mov eax, dword [ebx + 0x6c]
xor edx, edx
test ebp, ebp
sete dl
test al, 0x20
jne 0x7039c93f
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x7039c93f
or eax, 0x20
mov dword [esp + 0x2c], edx
mov dword [ebx + 0x6c], eax
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ecx
call dword [eax + 0x18]
sub esp, 0x10
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov dword [eax], ebp
mov eax, dword [ebx + 0x6c]
or eax, 1
mov dword [ebx + 0x6c], eax
add esp, 0x4c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x6c]
xor edx, edx
test ebp, ebp
sete dl
mov dword [eax], ebp
mov eax, dword [ebx + 0x6c]
or eax, 1
jmp 0x7039c9ed
test byte [0x703d83a0], 4
jne 0x7039ca76
mov eax, dword [ebx + 0x6c]
test al, 0x20
jne 0x7039ca58
mov edx, dword [ebx + 8]
test edx, edx
je 0x7039ca58
or eax, 0x20
mov dword [ebx + 0x6c], eax
mov eax, dword [edx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c0008
mov dword [esp], edx
call dword [eax + 0x18]
sub esp, 0x10
mov eax, dword [esp + 0x6c]
mov edx, 0x800c0008
mov dword [eax], ebp
mov eax, dword [ebx + 0x6c]
or eax, 1
mov dword [ebx + 0x6c], eax
add esp, 0x4c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetReadFile_failed:__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 4], 0x703d83a0
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.7039c480
jmp 0x7039ca21
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x7039c95f
test byte [0x703d83a0], 4
jne 0x7039cb24
mov eax, dword [ebx + 0x6c]
test al, 0x20
jne 0x7039caff
mov edx, dword [ebx + 8]
test edx, edx
je 0x7039caff
or eax, 0x20
mov dword [ebx + 0x6c], eax
mov eax, dword [edx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c0007
mov dword [esp], edx
call dword [eax + 0x18]
sub esp, 0x10
mov eax, dword [esp + 0x6c]
mov edx, 0x800c0007
mov dword [eax], ebp
mov eax, dword [ebx + 0x6c]
or eax, 1
mov dword [ebx + 0x6c], eax
jmp 0x7039c97f
xor ebp, ebp
mov edx, 1
jmp 0x7039c93f
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetQueryDataAvailable_failed:__ld_n
mov dword [esp + 8], str.protocol_read
mov dword [esp + 4], 0x703d83a0
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.7039c480
jmp 0x7039cac8