Function at 0x14008ddd8
Capabilities:
Initialize winhttp library
Prepare http request
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x770], rax
xor r12d, r12d
mov r15, rdx
mov qword [rsp + 0x48], r12
mov r14b, r12b
mov dword [rsp + 0x40], r12d
mov esi, r12d
mov word [rbp + 0x160], r12w
mov rdi, rcx
mov word [rsp + 0x50], r12w
mov r13d, 0x80070000
cmp rsi, 1
jne 0x14008de77
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call fcn.14008b830
mov ebx, eax
test eax, eax
js 0x14008dff8
cmp dword [rsp + 0x40], r12d
je 0x14008de77
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
nop dword [rax + rax]
test eax, eax
je 0x14008e035
mov r14b, sil
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x400
call sub.msvcrt.dll_memset
xor r9d, r9d
mov word [rsp + 0x50], r12w
xor r8d, r8d
mov word [rbp + 0x160], r12w
xor edx, edx
mov dword [rsp + 0x20], r12d
lea rcx, str.OneSettingsQuery
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
jne 0x14008dedd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
jmp 0x14008df7d
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov qword [rdi + 8], rax
test rax, rax
je 0x14008dec1
lea rax, [rbp + 0x160]
mov r9b, r14b
mov qword [rsp + 0x30], rax
mov r8, r15
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.14008b968
lea rdx, [rbp + 0x370]
mov rcx, rdi
call fcn.14008b68c
mov ebx, eax
test eax, eax
js 0x14008df7d
mov rcx, qword [rdi + 8]
lea r8, [rbp + 0x370]
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x1400b6c90]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14008dec1
mov ebx, r12d
test ebx, ebx
js 0x14008dfd6
mov rcx, rdi
call fcn.14008bf38
mov ebx, eax
cmp eax, 0x80070005
jne 0x14008dfd6
cmp r12w, word [rsp + 0x50]
je 0x14008dfd6
mov rcx, qword [rdi + 0x10]
lea rax, [rbp + 0x160]
mov edx, 1
mov qword [rsp + 0x28], r12
mov r8d, edx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
nop dword [rax + rax]
test eax, eax
je 0x14008dfd6
mov rcx, rdi
call fcn.14008bf38
mov ebx, eax
cmp rsi, 1
jne 0x14008dff4
test r14b, r14b
je 0x14008dff4
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
je 0x14008e057
mov r14b, r12b
test ebx, ebx
jns 0x14008e005
inc rsi
cmp rsi, 2
jb 0x14008de35
test r14b, r14b
je 0x14008e072
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x14008e072
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008e005
mov ebx, 0x80004005
jmp 0x14008e005
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebx
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140094220
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x880
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret