Function at 0x14002d060
Capabilities:
Initialize winhttp library
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 - 0x68]
sub rsp, 0x168
mov rax, qword [0x1400bb060]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, r9
mov qword [rsp + 0x58], rax
mov rsi, r8
mov qword [rbp - 0x60], r8
mov r13, rdx
mov qword [rbp - 0x78], rdx
mov r14, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x58], rax
mov r15, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x70], rax
mov rax, r8
mov qword [rsp + 0x60], rax
cmp qword [r8 + 0x18], 0x10
jb 0x14002d0de
mov rax, qword [r8]
mov qword [rsp + 0x60], rax
mov r12, 0xffffffffffffffff
inc r12
cmp byte [rax + r12], 0
jne 0x14002d0e5
xor eax, eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], al
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov edi, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14002d83b
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x14002d13f
mov rdx, qword [r14]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp - 0x68], rax
test rax, rax
je 0x14002d832
mov r8, r13
cmp qword [r13 + 0x18], 8
jb 0x14002d16c
mov r8, qword [r13]
mov dword [rsp + 0x30], 0x800000
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002d824
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
lea r8d, [r14 + 6]
lea rdx, str.Expect
lea rcx, [rbp - 0x30]
call fcn.140002350
nop
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r14w
lea r8d, [r14 + 0xc]
lea rdx, str.100_continue
lea rcx, [rbp - 0x10]
call fcn.140002350
nop
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002d240
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rdx + 0x10], xmm1
lea ebx, [r14 + 7]
mov word [rbp - 0x30], r14w
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp]
movups xmmword [rdx + 0x30], xmm1
mov edx, ebx
mov word [rbp - 0x10], r14w
add qword [rdi + 8], 0x40
jmp 0x14002d254
lea r8, [rbp - 0x30]
mov rcx, rdi
call fcn.1400366d0
mov rdx, qword [rbp + 8]
mov rbx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002d290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d28b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d960
call fcn.140062c6c
cmp rbx, 8
jb 0x14002d2cc
lea rdx, [rbx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d2c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d960
call fcn.140062c6c
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
mov r8d, 0xc
lea rdx, str.Content_Type
lea rcx, [rbp - 0x30]
call fcn.140002350
nop
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r14w
mov r8d, 0x10
lea rdx, str.application_json
lea rcx, [rbp - 0x10]
call fcn.140002350
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002d365
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rdx + 0x10], xmm1
mov ebx, 7
mov word [rbp - 0x30], r14w
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp]
movups xmmword [rdx + 0x30], xmm1
mov edx, ebx
mov word [rbp - 0x10], r14w
add qword [rdi + 8], 0x40
jmp 0x14002d379
lea r8, [rbp - 0x30]
mov rcx, rdi
call fcn.1400366d0
mov rdx, qword [rbp + 8]
mov rbx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002d3b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d3b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d960
call fcn.140062c6c
cmp rbx, 8
jb 0x14002d3f1
lea rdx, [rbx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d3ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d960
call fcn.140062c6c
mov r14, qword [rdi]
mov r13, qword [rdi + 8]
xor ebx, ebx
cmp r14, r13
je 0x14002d5b3
lea rsi, [r14 + 0x38]
lea rdx, [0x1400abafc]
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rsi - 0x28]
sub rax, rcx
cmp rax, 2
jb 0x14002d972
mov r9, r14
cmp qword [rsi - 0x20], 8
jb 0x14002d436
mov r9, qword [r14]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x30]
call fcn.1400027e0
nop
mov rdx, qword [rsi - 8]
lea r9, [rsi - 0x18]
cmp qword [rsi], 8
jb 0x14002d464
mov r9, qword [r9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14002d4aa
lea rdi, [rdx + rcx]
mov qword [rbp - 0x20], rdi
lea rbx, [rbp - 0x30]
cmp r8, 8
cmovae rbx, qword [rbp - 0x30]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.140064fd0
xor ecx, ecx
mov word [rbx + rdi*2], cx
lea rax, [rbp - 0x30]
xor ebx, ebx
jmp 0x14002d4b8
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x30]
call fcn.140002bc0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002d522
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d51d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d966
call fcn.140062c6c
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r9d, 0x20000000
mov r8d, dword [rbp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14002d55d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpAddRequestHeaders_error:__d_n
call fcn.14002c2f0
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x14002d59d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d598
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d96c
call fcn.140062c6c
add r14, 0x40
add rsi, 0x40
cmp r14, r13
jne 0x14002d407
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test eax, eax
je 0x14002d80f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
test eax, eax
je 0x14002d80f
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14002d7fb
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14002d80f
lea ecx, [rax + 1]
call fcn.140062ef0
mov rbx, rax
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400656a0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14002d697
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.14002c2f0
jmp 0x14002d7e5
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], r14b
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r14b
jne 0x14002d6b5
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140004570
nop
mov r8, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14002d6d8
mov r8, qword [r15]
mov r9, qword [r15 + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140008fd0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rbp + 0x20], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp + 0x10]
cmp r15, rax
je 0x14002d76e
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14002d75a
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x14002d74b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d978
mov rcx, r8
call fcn.140062c6c
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm1
mov edx, 0xf
mov byte [rbp + 0x10], 0
jmp 0x14002d772
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14002d7aa
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d7a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d978
call fcn.140062c6c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14002d7e5
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d7e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d97e
call fcn.140062c6c
mov rcx, rbx
call fcn.140062c6c
cmp dword [rsp + 0x40], 0
jbe 0x14002d80f
xor ebx, ebx
jmp 0x14002d621
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.14002c2f0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r14, qword [rbp - 0x80]
mov r13, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rsi, qword [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
setne bl
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14002d87f
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002d87a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d984
mov rcx, r8
call fcn.140062c6c
xor edi, edi
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x14002d8d1
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002d8cc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d954
mov rcx, r8
call fcn.140062c6c
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 7
mov word [r13], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14002d918
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14002d913
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d95a
mov rcx, r8
call fcn.140062c6c
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rsp + 0x58]
call fcn.140011500
movzx eax, bl
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140062b40
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14006ef68
nop
call fcn.14006ef68
nop
call fcn.14006ef68
int3
call fcn.14006ef68
int3
call fcn.14006ef68
int3
call fcn.140001480
nop
call fcn.14006ef68
nop
call fcn.14006ef68
nop
call fcn.14006ef68
int3