Function at 0x14000d0c0
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 - 0x18]
sub rsp, 0x118
mov rax, qword [0x140083030]
xor rax, rsp
mov qword [rbp], rax
mov rdi, r9
mov r12, r8
mov r15, rdx
mov qword [rsp + 0x58], rdx
mov r13, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], r8
mov r14, qword [rbp + 0x80]
mov rsi, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14000d118
mov rsi, qword [r8]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14000d120
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], al
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x44], 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 qword [rsp + 0x60], rax
test rax, rax
je 0x14000d4c0
mov rdx, r13
cmp qword [r13 + 0x18], 8
jb 0x14000d17a
mov rdx, qword [r13]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000d4b5
mov r8, r15
cmp qword [r15 + 0x18], 8
jb 0x14000d1a7
mov r8, qword [r15]
mov dword [rsp + 0x30], 0x800000
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea rdx, [0x140078ff0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x14000d4a5
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Expect:_100_continue
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14000d20e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpAddRequestHeaders_error:__d_n
call fcn.14000c710
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14000d242
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpAddRequestHeaders_error:__d_n
call fcn.14000c710
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x44], eax
test eax, eax
je 0x14000d49c
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x44], eax
test eax, eax
je 0x14000d49c
mov dword [rsp + 0x48], 4
xor esi, esi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000d488
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000d49c
lea ecx, [rax + 1]
call fcn.14003b900
mov rbx, rax
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14003dd70
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000d32a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.14000c710
jmp 0x14000d474
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x14000d345
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1400038c0
nop
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000d369
mov r8, qword [rdi]
mov r9, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.14000c240
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp - 0x40]
cmp rdi, rax
je 0x14000d3fd
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000d3eb
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000d3dc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5e4
mov rcx, r8
call fcn.14003b67c
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
mov edx, 0xf
mov byte [rbp - 0x40], 0
jmp 0x14000d401
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14000d439
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5e4
call fcn.14003b67c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14000d474
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d46f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5ea
call fcn.14003b67c
mov rcx, rbx
call fcn.14003b67c
cmp dword [rsp + 0x40], 0
jbe 0x14000d49c
jmp 0x14000d2b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.14000c710
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r15, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rsp + 0x44], 0
setne bl
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x14000d508
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000d503
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5f0
mov rcx, r8
call fcn.14003b67c
xor edi, edi
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 7
mov word [r13], di
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x14000d55a
mov rcx, qword [r15]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000d555
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5d8
mov rcx, r8
call fcn.14003b67c
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14000d5a2
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x14000d59d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5de
mov rcx, r8
call fcn.14003b67c
mov qword [r12 + 0x10], rdi
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14003b550
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140047598
nop
call fcn.140047598
nop
call fcn.140047598
nop
call fcn.140047598
nop
call fcn.140047598
int3