Function at 0x140017988
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400cabe8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
xor r12d, r12d
mov qword [rbp + 0x1f], r12
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
cmp qword [rcx + 8], r12
jne 0x1400179e8
lea eax, [r12 + 0x57]
jmp 0x140017d01
lea rax, [rbp - 9]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x11], rax
mov word [rbp - 9], r12w
lea rax, [rbp - 0x29]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x31], rax
mov word [rbp - 0x29], r12w
lea rax, [rbp - 0x49]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
mov word [rbp - 0x49], r12w
movaps xmm0, xmmword [rcx]
movdqa xmmword [rbp + 7], xmm0
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.140017894
mov r14d, eax
test eax, eax
jne 0x140017cb0
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.Debugging_Tools_for_Windows
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140017a8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x140017cb0
mov r8d, 0x50
xor r9d, r9d
mov rdx, qword [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140017ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x140017ca0
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [rbp - 0x39]
lea rdx, str.POST
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140017b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x140017c91
lea rax, [rbp - 0x69]
mov qword [rbp - 0x79], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x71], rax
mov byte [rbp - 0x69], r12b
mov r8, qword [rbp - 0x51]
mov rdx, qword [rbp - 0x59]
sub r8, rdx
sar r8, 1
mov dword [rsp + 0x20], 0x400
lea rcx, [rbp - 0x79]
call fcn.140016f1c
test eax, eax
js 0x140017c21
mov rax, qword [rbp - 0x71]
mov r9, qword [rbp - 0x79]
sub rax, r9
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
or r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
je 0x140017c5a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
je 0x140017c5a
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop dword [rax + rax]
test eax, eax
je 0x140017c5a
mov r8d, 0xa
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.msvcrt.dll_strtoul]
nop dword [rax + rax]
cmp eax, 0x190
jb 0x140017bf9
mov r14d, 0x33
jmp 0x140017c69
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [rax + rax]
test eax, eax
je 0x140017c5a
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.140017800
test al, al
jne 0x140017c29
mov r14d, 0xe
jmp 0x140017c69
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
nop dword [rax + rax]
test eax, eax
je 0x140017c5a
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.140017800
mov r14d, r12d
jmp 0x140017c69
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
lea rax, [rbp - 0x69]
mov rcx, qword [rbp - 0x79]
cmp rcx, rax
je 0x140017c82
lea rdx, [0x1400278bf]
call fcn.1400246a0
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
nop
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x59]
cmp rcx, rax
je 0x140017cca
lea rdx, [0x1400278bf]
call fcn.1400246a0
nop
lea rax, [rbp - 0x29]
mov rcx, qword [rbp - 0x39]
cmp rcx, rax
je 0x140017ce4
lea rdx, [0x1400278bf]
call fcn.1400246a0
nop
lea rax, [rbp - 9]
mov rcx, qword [rbp - 0x19]
cmp rcx, rax
je 0x140017cfe
lea rdx, [0x1400278bf]
call fcn.1400246a0
nop
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140023980
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret