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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe8
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rdi, r9
mov r13, r8
mov qword [rsp + 0x50], r8
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x61], rdx
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x58], rax
mov rbx, qword [rbp + 0x7f]
mov byte [rsp + 0x40], 0
cmp qword [rcx], 0
jne 0x140009bd7
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x140009bcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140009bc8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a277
mov rcx, r8
call fcn.14002576c
xor r14d, r14d
xor al, al
jmp 0x14000a247
xor r14d, r14d
mov word [rbp - 0x71], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140051960]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x39], r14w
movups xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x59], r14w
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x39]
call fcn.1400094d0
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
movzx esi, word [rbp - 0x71]
movzx r8d, si
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rbp - 0x79], rax
test rax, rax
jne 0x140009d39
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140009c8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009c8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a196
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140009ce1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009cdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1eb
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x140009d32
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140009d2d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a277
mov rcx, r8
call fcn.14002576c
xor al, al
jmp 0x14000a247
lea rax, [0x14004ed10]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r14
mov edx, 0x1bb
mov ecx, r14d
mov eax, 0x800000
cmp si, dx
cmove ecx, eax
mov rax, qword [r12 + 8]
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae r8, qword [rbp - 0x59]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
mov rdx, rdi
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x140009efc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r9d, [rsi + 0x30]
lea r8, str.Error
lea rdx, str.Failed_To_Open_Request
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r9d, [rsi + 0x10]
lea r8, str.Error
mov rdx, qword [rbp - 0x69]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140009e4f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140009ea4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x140009d32
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140009d2d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140009d2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r12b, r12b
mov rax, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14000a00d
lea r9, str.Content_Type:
mov r15, rax
mov r13d, 1
nop
mov rax, qword [rbx + 0x10]
mov r10, rbx
mov rdi, qword [rbx + 0x18]
cmp rdi, 8
jb 0x140009f34
mov r10, qword [rbx]
cmp rax, 0xd
jb 0x140009fc9
add rax, 0xfffffffffffffff4
lea r11, [r10 + rax*2]
mov rax, r10
nop dword [rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov rdx, r14
je 0x140009f79
cmp word [rax], 0x43
je 0x140009f76
cmp rcx, r13
je 0x140009f79
dec rcx
add rax, 2
cmp word [rax], 0x43
jne 0x140009f64
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140009fc9
mov r8d, reloc.WS2_32.dll_listen
mov rdx, r9
mov r9, rax
lea rcx, str.Content_Type:
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x14000a10e
add rdx, 2
sub r8, r13
jne 0x140009fa0
sub rax, r10
sar rax, 1
movzx r12d, r12b
cmp rax, 0xffffffffffffffff
cmovne r12d, r13d
mov rdx, rbx
cmp rdi, 8
jb 0x140009fd5
mov rdx, qword [rbx]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
add rbx, 0x20
cmp rbx, r15
lea r9, str.Content_Type:
jne 0x140009f20
test r12b, r12b
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
jne 0x14000a031
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x14000a147
mov qword [rsp + 0x30], r14
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000a147
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000a147
mov edi, r14d
mov r12, 0xffffffffffffffff
nop dword [rax]
mov dword [rbp - 0x69], r14d
mov dword [rbp - 0x71], r14d
lea rdx, [rbp - 0x71]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000a12c
mov eax, dword [rbp - 0x71]
test eax, eax
je 0x14000a12c
add eax, 1
mov ecx, eax
cmovb rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov r8d, dword [rbp - 0x71]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x69]
mov r8d, dword [rbp - 0x71]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000a11e
mov r9d, dword [rbp - 0x71]
mov rdx, qword [r13 + 8]
mov r8, rbx
mov rcx, r13
call fcn.140019310
add edi, dword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbp - 0x71], 0
ja 0x14000a080
jmp 0x14000a12c
add rax, 2
lea r9, str.Content_Type:
jmp 0x140009f50
test rbx, rbx
je 0x14000a12c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x18], edi
mov ebx, dword [rsp + 0x40]
movzx ebx, bl
test edi, edi
mov eax, 1
cmovne ebx, eax
jmp 0x14000a14b
mov ebx, dword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14000a1a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a19d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a19d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r14w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14000a1f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a1f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a1f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002576c
movdqa xmm0, xmmword [0x140051960]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x14000a244
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14000a23f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a277
mov rcx, r8
call fcn.14002576c
movzx eax, bl
mov word [r15], r14w
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], r14
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140025710
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3