Function at 0x14006a51c
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 [0x14013bf40]
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 0x14006a57c
lea eax, [r12 + 0x57]
jmp 0x14006a895
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.14006a428
mov r14d, eax
test eax, eax
jne 0x14006a844
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 0x14006a620
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14006a844
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 0x14006a658
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14006a834
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 0x14006a6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14006a825
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.14006a188
test eax, eax
js 0x14006a7b5
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 0x14006a7ee
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
je 0x14006a7ee
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 0x14006a7ee
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 0x14006a78d
mov r14d, 0x33
jmp 0x14006a7fd
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [rax + rax]
test eax, eax
je 0x14006a7ee
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.14006b844
test al, al
jne 0x14006a7bd
mov r14d, InitCommonControls
jmp 0x14006a7fd
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 0x14006a7ee
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.14006b844
mov r14d, r12d
jmp 0x14006a7fd
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 0x14006a816
lea rdx, [0x140080f44]
call fcn.14006eb30
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 0x14006a85e
lea rdx, [0x140080f44]
call fcn.14006eb30
nop
lea rax, [rbp - 0x29]
mov rcx, qword [rbp - 0x39]
cmp rcx, rax
je 0x14006a878
lea rdx, [0x140080f44]
call fcn.14006eb30
nop
lea rax, [rbp - 9]
mov rcx, qword [rbp - 0x19]
cmp rcx, rax
je 0x14006a892
lea rdx, [0x140080f44]
call fcn.14006eb30
nop
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14006e720
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