Function at 0x140078b70
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r12, r9
mov r15, r8
mov rax, rdx
mov rsi, rcx
xor r13d, r13d
mov r14b, r13b
lea ebx, [r13 + 0xf]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], r13
mov byte [rbp - 0x48], r13b
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140078ea0
test al, al
je 0x140078de5
lea ebx, [r13 + 1]
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.140078248
test al, al
je 0x140078c20
mov rcx, rsi
call fcn.1400785ac
neg al
sbb ecx, ecx
and ebx, ecx
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x78], r13
mov byte [rsp + 0x78], r13b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.140002f18
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140078f88
cmp byte [rsi + 0x20], r13b
je 0x140078dd8
mov ebx, r13d
mov eax, 0x803000
cmp dword [rsp + 0x40], 1
cmove ebx, eax
lea rcx, [rsp + 0x78]
call fcn.140078e44
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x140078c9c
mov rax, qword [rax]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, str.HTTP_1.0
mov rdx, rax
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
cmp qword [rbp - 0x70], 0x10
jb 0x140078cd7
mov rcx, qword [rsp + 0x78]
call fcn.140049668
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x78], r13
mov byte [rsp + 0x78], r13b
test rbx, rbx
je 0x140078dcf
cmp dword [rsp + 0x40], 1
jne 0x140078d31
mov r14d, 4
mov dword [rsp + 0x48], r14d
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea edx, [r14 + 0x1b]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
bts dword [rsp + 0x40], 8
mov r9d, r14d
lea r8, [rsp + 0x40]
lea edx, [r14 + 0x1b]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], r13b
mov dword [rsp + 0x44], r13d
jmp 0x140078d7c
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140078da0
cmp rax, 0x401
jae 0x140078d9a
mov byte [rbp + rax - 0x20], r13b
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.1400050f0
lea r9, [rsp + 0x44]
mov r8d, 0x400
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140078d5a
jmp 0x140078da0
call fcn.1400497c0
int3
lea rax, [rbp - 0x68]
cmp r12, rax
je 0x140078dbc
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.140002f18
mov r14b, 1
cmp qword [rbp - 0x50], 0x10
jb 0x140078dcf
mov rcx, qword [rbp - 0x68]
call fcn.140049668
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call fcn.140078f44
mov ebx, reloc.WS2_32.dll_ntohs
cmp qword [rsp + 0x70], 0x10
jb 0x140078df7
mov rcx, qword [rsp + 0x58]
call fcn.140049668
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
cmp qword [rbp - 0x30], 0x10
jb 0x140078e16
mov rcx, qword [rbp - 0x48]
call fcn.140049668
mov al, r14b
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140049680
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret