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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
mov dword [rbp - 0x71], 8
mov r15, rdx
mov qword [rbp + 0x27], r12
mov dword [rbp - 0x75], r12d
mov dword [rbp - 0x79], r12d
cmp qword [rcx + 8], r12
jne 0x14005e999
lea eax, [r12 + 0x57]
jmp 0x14005eca6
movaps xmm0, xmmword [rcx]
lea rax, [rbp + 7]
mov qword [rbp - 9], rax
lea r9, [rbp - 0x49]
lea rax, [rbp + 7]
mov word [rbp + 7], r12w
mov qword [rbp - 1], rax
lea r8, [rbp - 0x29]
lea rax, [rbp - 0x19]
mov word [rbp - 0x19], r12w
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 9]
lea rax, [rbp - 0x19]
mov word [rbp - 0x39], r12w
mov qword [rbp - 0x21], rax
lea rcx, [rbp + 0x17]
lea rax, [rbp - 0x39]
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x41], rax
call fcn.14005e84c
mov r14d, eax
test eax, eax
jne 0x14005ec58
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, [0x1400e15f0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14005ea3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14005ec58
mov rdx, qword [rbp - 9]
mov r8d, 0x50
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14005ea75
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14005ec49
mov r8, qword [rbp - 0x29]
lea rdx, str.POST
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14005eabd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
jmp 0x14005ec3a
mov r8, qword [rbp - 0x41]
lea rax, [rbp - 0x59]
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x69]
mov qword [rbp - 0x69], rax
sub r8, rdx
lea rax, [rbp - 0x59]
sar r8, 1
mov qword [rbp - 0x61], rax
mov byte [rbp - 0x59], r12b
mov dword [rsp + 0x20], 0x400
call fcn.140060410
test eax, eax
js 0x14005ebcd
mov eax, dword [rbp - 0x61]
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
sub eax, dword [rbp - 0x69]
or r8d, 0xffffffff
mov r9, qword [rbp - 0x69]
mov rcx, rbx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
je 0x14005ec03
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
je 0x14005ec03
xor r8d, r8d
lea rax, [rbp - 0x75]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x27]
lea rax, [rbp - 0x71]
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop dword [rax + rax]
test eax, eax
je 0x14005ec03
mov r8d, 0xa
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x27]
call qword [sym.imp.msvcrt.dll_strtoul]
nop dword [rax + rax]
cmp eax, 0x190
jb 0x14005eba7
mov r14d, 0x33
jmp 0x14005ec12
lea rdx, [rbp - 0x79]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [rax + rax]
test eax, eax
je 0x14005ec03
mov edx, dword [rbp - 0x79]
mov rcx, r15
call fcn.14005ff24
test al, al
jne 0x14005ebd5
mov r14d, InitCommonControls
jmp 0x14005ec12
mov r8d, dword [rbp - 0x79]
lea r9, [rbp - 0x79]
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
nop dword [rax + rax]
test eax, eax
je 0x14005ec03
mov edx, dword [rbp - 0x79]
mov rcx, r15
call fcn.14005ff24
mov r14d, r12d
jmp 0x14005ec12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [rbp - 0x69]
lea rax, [rbp - 0x59]
cmp rcx, rax
je 0x14005ec2b
lea rdx, [0x1400725e4]
call fcn.140063008
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]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x39]
cmp rcx, rax
je 0x14005ec71
lea rdx, [0x1400725e4]
call fcn.140063008
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x19]
cmp rcx, rax
je 0x14005ec8a
lea rdx, [0x1400725e4]
call fcn.140063008
mov rcx, qword [rbp - 9]
lea rax, [rbp + 7]
cmp rcx, rax
je 0x14005eca3
lea rdx, [0x1400725e4]
call fcn.140063008
mov eax, r14d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret