Function at 0x140065630
Capabilities:
Check http status code
Connect to http server
Parse url
Query remote server for available data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x8e0]
sub rsp, 0x9e0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
xor ebx, ebx
mov rdi, rdx
mov r14, rcx
movzx esi, bx
test rdx, rdx
je 0x140065875
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14027b2c0
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x800
call fcn.14027b2c0
xor edx, edx
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14027b2c0
lea rax, [rbp - 0x30]
mov dword [rsp + 0x40], WSAGetLastError
mov qword [rsp + 0x58], rax
or rdx, 0xffffffffffffffff
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x60], 0x100
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x800
inc rdx
cmp byte [rdi + rdx], bl
jne 0x1400656d6
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x14006570b
mov eax, dword [rsp + 0x54]
cmp eax, 3
jne 0x140065701
lea esi, [rax + 0x4d]
jmp 0x14006570b
cmp eax, 4
jne 0x14006570b
mov esi, 0x1bb
mov rcx, qword [r14]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x30], ebx
movzx r8d, si
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
test rax, rax
je 0x140065875
mov qword [rsp + 0x38], rbx
lea r9, [0x1403247b0]
mov dword [rsp + 0x30], 0x800000
lea r8, [rbp + 0xd0]
mov qword [rsp + 0x28], rbx
lea rdx, [0x14032391c]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x14006586c
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x140065800
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x140065863
lea r9, [rbp - 0x48]
mov dword [rbp - 0x48], 4
lea r8, [rbp - 0x4c]
mov edx, 0x1f
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rbp - 0x4c], 0x100
lea r8, [rbp - 0x4c]
mov r9d, 4
mov rcx, rdi
lea edx, [r9 + 0x1b]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x140065863
xor eax, eax
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
lea r9, [rbp - 0x50]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea edx, [rax + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140065863
lea rcx, [rbp - 0x40]
call fcn.14028cfec
cmp eax, 0xc8
jne 0x140065863
xor r9d, r9d
mov dword [rbp - 0x50], ebx
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140065863
cmp dword [rbp - 0x50], ebx
mov eax, 1
cmova ebx, eax
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.14012a2b0
lea r11, [rsp + 0x9e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret