Function at 0x1400054b0
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1400a3020]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14000573c
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400054f8
mov rdx, qword [rbx]
xor r9d, r9d
movzx r8d, word [rbx + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov qword [rbp + 0x2f], rax
test rax, rax
je 0x14000575d
add rbx, 0x28
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0xf
jb 0x140005776
cmp qword [rbx + 0x18], 8
jb 0x14000553f
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], reloc.WS2_32.dll_ntohs
lea r9, str._api_0_session_
lea rcx, [rbp - 0x31]
call fcn.140007770
nop
mov r8d, 8
lea rdx, str._request
lea rcx, [rbp - 0x31]
call fcn.140002500
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x51], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x41], xmm1
xor r14d, r14d
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r8, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae r8, qword [rbp - 0x51]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.POST
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rbp + 0x27], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140005612
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000560d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000577c
call fcn.1400477f0
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r14w
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140005663
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000565e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005782
call fcn.1400477f0
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r14w
test rbx, rbx
je 0x140005788
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1400057a1
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1400056ae
mov rsi, qword [rsi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400057ba
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140005723
mov rdx, rbx
call fcn.1400057e0
nop
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400477d0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, [0x14008c750]
lea rcx, [rbp - 0x11]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
nop
lea rdx, str.No_Session
lea rcx, [rbp - 0x11]
call fcn.140004540
lea rdx, [0x1400a13e8]
lea rcx, [rbp - 0x11]
call fcn.140049b34
nop
lea rdx, [0x14008c6f0]
lea rcx, [rbp - 0x31]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3
call fcn.140002740
nop
call fcn.14004e14c
nop
call fcn.14004e14c
int3
lea rdx, [0x14008c720]
lea rcx, [rbp - 0x11]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3
lea rdx, [0x14008ca08]
lea rcx, [rbp - 0x11]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3
lea rdx, [0x14008c738]
lea rcx, [rbp - 0x11]
call fcn.140006750
mov rcx, rax
call fcn.1400046e0
int3