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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
lea r12, [rsp + 0x60]
lea rbx, [rsp + 0xa0]
mov qword [rsp + 0x138], rdx
mov rbp, rcx
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x68], 0
lea rax, [r12 + 0x10]
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rbx
mov edx, 5
mov qword [rsp + 0x60], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov dword [rsp + 0x4c], 0
mov byte [rsp + 0x4b], 0
jne 0x140004f30
lea rax, [rsp + 0x5c]
mov r13, qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov r14, qword [sym.imp.WININET.dll_InternetReadFile]
xor edi, edi
movabs r15, 0x7fffffffffffffff
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call r13
test eax, eax
je 0x140004f00
mov ebx, dword [rsp + 0x5c]
test ebx, ebx
jne 0x140004e73
movzx ebx, byte [rsp + 0x4b]
xor ebx, 1
cmp dword [rsp + 0x4c], edi
sete al
or bl, al
je 0x140004f00
cmp qword [rsp + 0x138], 0
je 0x140004f02
lea rsi, [rsp + 0x80]
mov rdx, r12
mov rcx, rsi
call fcn.140004b20
mov rax, qword [rsp + 0x138]
lea rdx, [rsi + 0x10]
mov rcx, qword [rax]
lea r8, [rax + 0x10]
mov rax, qword [rsp + 0x80]
cmp rax, rdx
je 0x140004f75
cmp rcx, r8
mov rdi, qword [rsp + 0x138]
je 0x140004f58
mov qword [rdi], rax
mov rax, qword [rsp + 0x88]
test rcx, rcx
mov rdx, qword [rdi + 0x10]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x10], rax
je 0x140004f02
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rdx
add rsi, 0x10
xor eax, eax
mov qword [rsp + 0x88], 0
cmp rcx, rsi
mov word [rcx], ax
je 0x140004f02
call fcn.1400aa950
jmp 0x140004f02
mov rcx, rbx
call fcn.1400aa9a0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x5c]
mov rdx, rsi
mov rcx, rbp
call r14
test eax, eax
je 0x140004ee0
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x140004ee0
mov rax, r15
sub rax, qword [rsp + 0x68]
add edi, r8d
cmp r8, rax
ja 0x140004f92
mov rdx, rsi
mov rcx, r12
call fcn.140098210
mov rcx, rsi
call fcn.1400aa950
jmp 0x140004d80
mov rcx, rsi
mov dword [rsp + 0x38], eax
call fcn.1400aa950
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x140004da5
nop dword [rax + rax]
xor ebx, ebx
mov rcx, qword [rsp + 0x60]
add r12, 0x10
cmp rcx, r12
je 0x140004f15
call fcn.1400aa950
mov eax, ebx
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
mov rcx, rbx
mov r8d, 0xa
call sub.msvcrt.dll_wcstol
mov rcx, r12
mov edx, eax
mov dword [rsp + 0x4c], eax
call fcn.140098090
mov byte [rsp + 0x4b], 1
jmp 0x140004d4c
mov qword [rdi], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x10], rax
jmp 0x140004f02
mov rcx, qword [rsp + 0x138]
mov rdx, rsi
call fcn.14009abe0
mov rcx, qword [rsp + 0x80]
jmp 0x140004e4b
lea rcx, [0x1400af5f2]
call fcn.1400a3ff0
mov rcx, rsi
mov rbx, rax
call fcn.1400aa950
mov rcx, qword [rsp + 0x60]
add r12, 0x10
cmp rcx, r12
je 0x140004fbc
call fcn.1400aa950
mov rcx, rbx
call fcn.140014760
mov rbx, rax
jmp 0x140004fa9