Function at 0x1400653a0
Capabilities:
Check http status code
Connect to http server
Parse url
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x900]
sub rsp, 0xa00
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
xor eax, eax
mov r12, r9
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov edi, eax
movzx r15d, ax
test rdx, rdx
je 0x140065628
test r8, r8
je 0x140065628
test r9, r9
je 0x140065628
xor edx, edx
mov qword [rsp + 0x9f8], rbx
mov r8d, 0x100
lea rcx, [rbp - 0x20]
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x800
call fcn.1402767a0
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1402767a0
lea rax, [rbp - 0x20]
mov dword [rsp + 0x50], WSAGetLastError
mov qword [rsp + 0x68], rax
or rbx, 0xffffffffffffffff
lea rax, [rbp + 0xe0]
mov dword [rsp + 0x70], 0x100
mov qword [rbp - 0x68], rax
mov rdx, rbx
mov dword [rbp - 0x60], 0x800
nop word [rax + rax]
inc rdx
cmp byte [rsi + rdx], dil
jne 0x140065470
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x1400654a8
mov eax, dword [rsp + 0x64]
cmp eax, 3
jne 0x14006549d
lea r15d, [rax + 0x4d]
jmp 0x1400654a8
cmp eax, 4
jne 0x1400654a8
mov r15d, 0x1bb
mov rcx, qword [r13]
lea rdx, [rbp - 0x20]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
movzx r8d, r15w
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r15, rax
test rax, rax
je 0x14006561d
xor r13d, r13d
lea r9, str.HTTP_1.1
mov qword [rsp + 0x38], r13
lea r8, [rbp + 0xe0]
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x14031f7b4]
mov qword [rsp + 0x28], r13
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rsi, rax
test rax, rax
je 0x140065614
inc rbx
cmp byte [r14 + rbx], dil
jne 0x140065525
mov r9, r14
mov dword [rsp + 0x20], ebx
mov r8d, reloc.WLDAP32.dll_Ordinal_46
lea rdx, str.Content_Type:application_x_www_form_urlencoded
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x14006560b
xor eax, eax
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
lea r9, [rsp + 0x40]
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x38]
mov qword [rbp - 0x30], rax
mov rcx, rsi
mov qword [rsp + 0x20], r13
lea edx, [rax + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14006560b
lea rcx, [rbp - 0x38]
call fcn.1402884cc
cmp eax, 0xc8
jne 0x14006560b
xor r9d, r9d
mov dword [rsp + 0x40], r13d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x14006560b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14006560b
mov ecx, eax
call fcn.140125a94
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402767a0
mov r8d, dword [rsp + 0x40]
lea r9, [rbp - 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140065604
mov dword [r12], r13d
test rdi, rdi
je 0x14006560b
mov rcx, rdi
call fcn.140125e14
mov rdi, r13
jmp 0x14006560b
mov eax, dword [rbp - 0x40]
mov dword [r12], eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x9f8]
mov rax, rdi
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0xa00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret