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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rax, qword [0x1400b21c0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x51], rdx
mov rsi, qword [rbp + 0x77]
xor r12b, r12b
cmp qword [rcx], 0
jne 0x140057e40
mov rdx, qword [rdx + 0x18]
cmp rdx, 7
jbe 0x140057e37
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140057e32
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058257
mov rcx, r8
call fcn.14008a07c
xor ebx, ebx
xor al, al
jmp 0x140058221
xor ebx, ebx
mov word [rbp - 0x59], bx
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x14009cef0]
movdqu xmmword [rbp - 0x11], xmm1
mov word [rbp - 0x21], bx
movups xmmword [rbp - 0x41], xmm0
movdqu xmmword [rbp - 0x31], xmm1
mov word [rbp - 0x41], bx
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.140057b10
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
xor r9d, r9d
movzx r15d, word [rbp - 0x59]
movzx r8d, r15w
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x140057f9a
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x140057ef2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140057eed
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058171
call fcn.14008a07c
movdqa xmm0, xmmword [0x14009cef0]
mov word [rbp - 0x41], bx
movdqu xmmword [rbp - 0x31], xmm0
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x140057f43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140057f3e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400581c5
call fcn.14008a07c
movdqa xmm0, xmmword [0x14009cef0]
mov word [rbp - 0x21], bx
movdqu xmmword [rbp - 0x11], xmm0
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140057f93
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140057f8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058257
mov rcx, r8
call fcn.14008a07c
xor al, al
jmp 0x140058221
lea rax, [0x14009b5d8]
mov qword [rbp - 1], rax
mov qword [rbp + 7], rbx
mov edx, 0x1bb
mov ecx, ebx
mov eax, 0x800000
cmp r15w, dx
cmove ecx, eax
mov rax, qword [r14 + 8]
lea r8, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova r8, qword [rbp - 0x41]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
lea rdx, str.POST
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140057eb2
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140058126
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140058126
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140058126
mov r15d, ebx
mov rsi, 0xffffffffffffffff
nop dword [rax]
mov dword [rbp - 0x49], ebx
mov dword [rbp - 0x59], ebx
lea rdx, [rbp - 0x59]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14005810e
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x14005810e
add eax, 1
mov ecx, eax
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8d, dword [rbp - 0x59]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x49]
mov r8d, dword [rbp - 0x59]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140058100
mov r9d, dword [rbp - 0x59]
mov rdx, qword [r13 + 8]
mov r8, rsi
mov rcx, r13
call fcn.140058990
add r15d, dword [rbp - 0x49]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbp - 0x59], 0
mov rsi, 0xffffffffffffffff
ja 0x140058070
jmp 0x14005810e
test rsi, rsi
je 0x14005810e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x69]
mov dword [rax + 0x18], r15d
movzx r12d, r12b
mov eax, 1
test r15d, r15d
cmovne r12d, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x14005817d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058178
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058178
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a07c
movdqa xmm0, xmmword [0x14009cef0]
movdqu xmmword [rbp - 0x31], xmm0
mov word [rbp - 0x41], bx
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1400581d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400581cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400581cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a07c
movdqa xmm0, xmmword [0x14009cef0]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x14005821d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140058218
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058257
mov rcx, r8
call fcn.14008a07c
movzx eax, r12b
mov word [rdi], bx
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140089de0
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3