Function at 0x18001a510
Capabilities:
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
xor r15b, r15b
xor r12d, r12d
mov dword [rbp - 0x21], r12d
mov dword [rbp - 0x1d], r12d
lea rcx, [rbp + 7]
call fcn.180019f00
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
mov r8d, 0x1388
xor r9d, r9d
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x18001a71f
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, str._connect
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
mov r8d, 0x20
lea rdx, str.Content_Type:_application_json_r_n
lea rcx, [rbp - 0x19]
call fcn.180018160
nop
test rsi, rsi
je 0x18001a6db
mov eax, dword [rdi + 0x20]
lea r9, [rdi + 0x10]
cmp qword [r9 + 0x18], 0xf
jbe 0x18001a5ed
mov r9, qword [r9]
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18001a6db
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001a6db
mov dword [rbp - 0x21], r12d
lea rdx, [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001a6cc
mov ecx, dword [rbp - 0x21]
inc ecx
call fcn.180027ed4
mov rbx, rax
mov r8d, dword [rbp - 0x21]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x1d]
mov r8d, dword [rbp - 0x21]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001a6c4
mov rax, qword [rdi]
mov r14, qword [rax + 0x20]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x18001a6a0
mov rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.180005f50
lea rdx, [rbp - 0x49]
mov rcx, rdi
call r14
test al, al
jne 0x18001a6d8
mov rcx, rbx
call fcn.180027d5c
cmp dword [rbp - 0x21], 0
ja 0x18001a632
jmp 0x18001a6db
mov r15b, 1
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x18001a71f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a719
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a719
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x18001a762
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a75d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a75d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
movzx eax, r15b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180027920
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret