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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x7ff7c8ea3088]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, r8
mov rbp, qword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
mov r15, qword [rsp + 0x118]
xor bl, bl
xor r12d, r12d
mov qword [r11 - 0x80], r12
mov qword [r11 - 0x60], 0xf
mov qword [r11 - 0x68], r12
mov byte [rsp + 0x50], bl
xor eax, eax
mov qword [r11 - 0x58], rax
mov dword [r11 - 0x40], r12d
mov eax, 0x800000
mov edx, 0x100
cmp byte [rcx + 0x10], r12b
cmove eax, edx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [r8 + 8]
lea rdx, str.POST
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x7ff7c8e54b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WinHttpOpenRequest_____x_n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e54d17
mov rsi, qword [rsi + 0x18]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x7ff7c8e54b83
lea rcx, str.Content_Type:_application_json
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
mov r9d, 0x20000000
lea rdx, str.Content_Type:_application_json
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edx, ebx
lea rcx, str.______totalUploadLength__0x_x_n
call fcn.7ff7c8e566b0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, eax
test al, al
jne 0x7ff7c8e54c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WinHttpSendRequest_____x_n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e54d0d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
movzx ebx, al
test al, al
jne 0x7ff7c8e54c2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WinHttpReceiveResponse_____x_n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e54d0d
mov dword [rsp + 0x78], r12d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ebx, eax
test al, al
jne 0x7ff7c8e54c58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WinHttpQueryDataAvailable_____x_n
call fcn.7ff7c8e566b0
test rbp, rbp
je 0x7ff7c8e54cbe
test r14, r14
je 0x7ff7c8e54cbe
test bl, bl
je 0x7ff7c8e54cbe
mov r8d, dword [r14]
xor edx, edx
mov rcx, rbp
call fcn.7ff7c8e5c560
mov eax, dword [r14]
mov r8d, dword [rsp + 0x78]
cmp r8d, eax
jb 0x7ff7c8e54c89
lea r8d, [rax - 1]
mov dword [rsp + 0x78], r8d
mov dword [rsp + 0x7c], r12d
lea r9, [rsp + 0x7c]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x7ff7c8e54cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.7ff7c8e566b0
mov eax, dword [rsp + 0x7c]
mov dword [r14], eax
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x84], 4
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov bl, 1
test r15, r15
je 0x7ff7c8e54d0d
mov eax, dword [rsp + 0x80]
mov dword [r15], eax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.7ff7c8e502f0
movzx eax, bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.7ff7c8e589f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret