Function at 0x14008a190
Capabilities:
Prepare http request
Read http header
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 - 0x38]
sub rsp, 0x138
mov rax, qword [0x1400b2040]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov qword [rbp - 0x70], r9
mov r12, r8
mov rbx, rdx
mov r13, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x80], rcx
mov rdi, qword [rbp + 0xa0]
mov dword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], recv
mov byte [rcx], r15b
lea rax, [rcx + 0x20]
mov qword [rsp + 0x70], rax
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recv
mov byte [rax], r15b
lea r14, [rcx + 0x40]
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], recv
mov byte [r14], r15b
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], r15
mov qword [rcx + 0x78], recv
mov byte [rcx + 0x60], r15b
mov dword [rcx + 0x80], r15d
mov dword [rsp + 0x40], 1
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 8
jb 0x14008ab39
mov rax, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14008a271
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 8
lea r9, str.https:__
lea rcx, [rbp - 0x60]
call fcn.140061180
mov dword [rsp + 0x40], 3
mov r8d, 1
lea rdx, [0x14009f9f4]
lea rcx, [rbp - 0x60]
call fcn.14005f5a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov dword [rsp + 0x40], 7
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x14008a2fb
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14005f5a0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov dword [rsp + 0x40], recv
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14005e8f0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14008a37b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a375
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14008a3bb
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a3b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a3b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], socket
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14008a40c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a407
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a407
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
cmp qword [0x1400b5508], 0
jne 0x14008a43c
mov r8d, socket
lea rdx, str.WinHttpOpen_failed
lea rcx, [r13 + 0x60]
call fcn.14005f440
mov dword [r13 + 0x80], 0xffffffff
jmp 0x14008ab10
mov qword [rbp - 0x40], r15
xor ecx, ecx
mov esi, ecx
mov dword [rbp - 0x68], ecx
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140089dc0
nop
mov rdx, r12
lea rcx, [rbp - 0x18]
call fcn.140089dc0
nop
mov rcx, qword [0x1400b5508]
test rcx, rcx
je 0x14008a48f
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 7
cmova rdx, qword [rbp + 8]
mov r8d, 0x1bb
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
jmp 0x14008a493
mov r12, qword [rbp - 0x40]
test rdi, rdi
je 0x14008a4a3
cmp qword [rdi + 0x10], 0
jbe 0x14008a4a3
mov cl, 1
jmp 0x14008a4a5
xor cl, cl
test r12, r12
je 0x14008a5d8
lea r8, [rbp - 0x18]
cmp qword [rbp], 7
cmova r8, qword [rbp - 0x18]
lea rax, [0x14009fa00]
lea rdx, [0x14009f9f8]
test cl, cl
cmovne rdx, rax
mov dword [rsp + 0x30], 0x800000
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x14008a5d8
mov rax, qword [rbp - 0x70]
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
cmp rbx, rsi
je 0x14008a584
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140089dc0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14008a57b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a576
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a59a
call fcn.140090d90
add rbx, 0x20
cmp rbx, rsi
jne 0x14008a510
test rdi, rdi
je 0x14008a5a1
mov eax, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14008a596
mov rdi, qword [rdi]
xor ecx, ecx
jmp 0x14008a5a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor ecx, ecx
mov eax, ecx
mov edi, ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
test eax, eax
je 0x14008a5d8
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
xor edi, edi
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x40], 4
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbx, 0xffffffffffffffff
mov ecx, ebx
test eax, eax
cmovne ecx, dword [rbp - 0x70]
mov dword [r13 + 0x80], ecx
test esi, esi
je 0x14008a9e5
mov dword [rbp - 0x70], edi
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x22
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008a900
mov ecx, dword [rbp - 0x70]
shr rcx, 1
mov eax, 2
mul rcx
cmovb rax, rbx
mov rcx, rax
call fcn.140091118
mov rsi, rax
lea r9, [rbp - 0x70]
mov r8, rax
mov edx, 0x22
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x14008a8f5
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], di
jne 0x14008a6a0
movabs r13, 0x7ffffffffffffffe
cmp rbx, r13
ja 0x14008ab3f
cmp rbx, 7
ja 0x14008a6ed
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x48], di
jmp 0x14008a799
mov rax, rbx
or rax, 7
cmp rax, r13
jbe 0x14008a709
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14008a734
mov ecx, 0xa
cmp rax, rcx
cmovb rax, rcx
mov r13, rax
lea rcx, [rax + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14008ab33
add rcx, rcx
je 0x14008a771
cmp rcx, 0x1000
jb 0x14008a769
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14008ab33
mov rcx, rax
call fcn.1400910a8
test rax, rax
je 0x14008a8e4
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14008a771
call fcn.1400910a8
mov rdi, rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], r13
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
mov word [rdi + rbx], cx
xor edi, edi
mov r9, qword [rsp + 0x58]
test r9, r9
jne 0x14008a7bf
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], r9b
jmp 0x14008a856
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.1400676f0
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x50], xmm1
mov dword [rsp + 0x40], 0x1f
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x70]
call fcn.14005e8f0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14008a8ab
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a8a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a8a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14008a8f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a8eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a8eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
mov r13, qword [rsp + 0x68]
mov rcx, rsi
call fcn.140090d90
nop dword [rax]
mov dword [rbp - 0x70], edi
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14008a9cf
mov ecx, dword [rbp - 0x70]
inc ecx
call fcn.140091118
mov rsi, rax
mov r8d, dword [rbp - 0x70]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x68]
mov r8d, dword [rbp - 0x70]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14008a964
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140089d60
jmp 0x14008a9bb
mov edi, dword [rbp - 0x68]
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14008a9a6
lea rax, [rcx + rdi]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rdx, 0xf
jbe 0x14008a98e
mov rax, qword [r14]
lea rbx, [rax + rcx]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14008a9b9
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140060a20
xor edi, edi
mov rcx, rsi
call fcn.140090d90
cmp dword [rbp - 0x70], 0
ja 0x14008a900
jmp 0x14008aa48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140089d60
jmp 0x14008aa48
lea rcx, [rbp - 0x38]
call fcn.140089ec0
mov rdx, rax
lea rcx, [r13 + 0x60]
call fcn.14005e8f0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14008aa38
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008aa33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008aa33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
cmp dword [r13 + 0x80], edi
jne 0x14008aa48
mov dword [r13 + 0x80], ebx
test r15, r15
je 0x14008aa56
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x14008aa64
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [r13 + 0x80], 0
jne 0x14008aa79
mov dword [r13 + 0x80], 0xc8
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x14008aabc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008aab7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008aab7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
mov qword [rbp - 8], rdi
mov qword [rbp], 7
mov word [rbp - 0x18], di
mov rdx, qword [rbp + 0x20]
cmp rdx, 7
jbe 0x14008ab10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008ab0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008ab0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
nop
mov rax, r13
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140090940
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400522e0
nop
call fcn.140052380
nop
call fcn.140052380
int3