Function at 0x140063eb4
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1d8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, r9
mov rax, r8
mov r14, qword [rsp + 0x230]
mov r15, qword [rsp + 0x238]
mov qword [rsp + 0x70], r15
mov rcx, qword [rcx + 8]
xor ebx, ebx
test rcx, rcx
jne 0x140063f0d
xor al, al
jmp 0x140064202
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x4443000
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, str.HTTP_1.1
mov r8, rdx
mov rdx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140063f50
mov dil, bl
jmp 0x1400641ff
mov byte [rsp + 0x40], bl
mov byte [rsp + 0x41], bl
mov r12b, 1
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0x60], rcx
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140063f91
cmp qword [rdi + 0x18], 8
jb 0x140063f77
mov rdi, qword [rdi]
mov r9d, 0x40000000
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov rcx, qword [rsp + 0x60]
test ecx, ecx
je 0x140063fa6
cmp qword [r14 + 0x18], 0x10
jb 0x140063fa1
mov r9, qword [r14]
jmp 0x140063fa9
mov r9, r14
jmp 0x140063fa9
mov r9, rbx
mov dword [rsp + 0x28], 0x2710
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.14007c000
test eax, eax
jne 0x140064083
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dil, bl
mov byte [rsp + 0x42], bl
cmp byte [rsp + 0x40], bl
jne 0x140064024
cmp eax, 0x2f0d
jne 0x140064024
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x48]
mov edx, 0x1f
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rsp + 0x48], 8
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov byte [rsp + 0x40], 1
jmp 0x140064079
cmp byte [rsp + 0x41], bl
jne 0x140064076
cmp eax, 0x2f19
jne 0x140064076
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x4c]
mov edx, 0x1f
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rsp + 0x4c], 7
mov r9d, 4
lea r8, [rsp + 0x4c]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov byte [rsp + 0x41], 1
jmp 0x140064079
mov r12b, bl
test r12b, r12b
je 0x14006408b
jmp 0x140063f8c
mov dil, 1
mov byte [rsp + 0x42], dil
mov r14d, ebx
mov dword [rsp + 0x58], ebx
mov word [rsp + 0x44], bx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x44]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140064149
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140064149
mov eax, dword [rsp + 0x50]
shr eax, 1
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b9fe0
mov r12, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14006411f
mov rcx, r12
call fcn.1400d03f0
mov r14d, eax
mov dword [rsp + 0x58], eax
mov rcx, r12
call fcn.1400b9b24
nop
jmp 0x140064140
cmp r14d, 0xc8
je 0x14006414c
mov dil, bl
mov qword [r15 + 0x10], rbx
cmp qword [r15 + 0x18], 0x10
jb 0x14006415c
mov rax, qword [r15]
jmp 0x14006415f
mov rax, r15
mov byte [rax], bl
mov r14d, reloc.WS2_32.dll_getservbyport
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0xc0]
call fcn.1400bbca0
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1400bbca0
mov dword [rsp + 0x80], r14d
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], 0xff
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x1400641f3
cmp dword [rsp + 0xa8], ebx
je 0x1400641f6
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xc0]
mov rcx, r15
call fcn.14000aedc
jmp 0x140064167
mov dil, bl
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, dil
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x1d8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret