Function at 0x1400ac750
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x688]
sub rsp, 0x770
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov r14, rcx
movzx ebx, word [0x1400b49c4]
mov word [rbp - 0x50], bx
mov edi, 0x206
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x4e]
call sub.VCRUNTIME140.dll_memset
mov word [rsp + 0x78], bx
xor edx, edx
lea r8d, [rdx + 0x2e]
lea rcx, [rsp + 0x7a]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x1c0], bx
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x1c2]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rbp + 0x1c0]
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
xor r15d, r15d
cmp eax, 0x102
ja 0x1400ac833
lea rcx, [rbp + 0x1c0]
lea rcx, [rcx + rax*2]
jmp 0x1400ac819
cmp word [rcx], 0x5c
je 0x1400ac825
sub rcx, 2
lea rax, [rbp + 0x1c0]
cmp rcx, rax
ja 0x1400ac80f
lea rdi, [rcx + 2]
cmp word [rcx], 0x5c
cmovne rdi, rcx
jmp 0x1400ac83b
mov word [rbp + 0x1c0], r15w
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov ebx, 0x20019
mov r9d, ebx
xor r8d, r8d
lea rdx, [0x1400b5a28]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac92f
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac91e
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.InprocServer32
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac90d
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400b49c4]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac908
mov word [rbp + 0x1b6], r15w
jmp 0x1400ac90d
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ac91e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400ac92f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp word [rbp - 0x50], r15w
je 0x1400aca30
call fcn.1400ac344
mov rsi, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call qword [0x1400b1958]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x1400ac974
mov word [rsp + 0x78], r15w
jmp 0x1400aca30
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400aca30
lea rdx, str.GetFileVersionInfoW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rbx
mov r8d, dword [rsp + 0x50]
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [0x1400b1958]
test eax, eax
je 0x1400aca1c
lea rdx, str.VerQueryValueW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
lea rdx, [0x1400b5ac8]
mov rcx, rbx
call qword [0x1400b1958]
test eax, eax
je 0x1400aca1c
mov rdx, qword [rsp + 0x58]
movzx eax, word [rdx + 0xc]
movzx ecx, word [rdx + 0xe]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x78]
call fcn.1400acf14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, word [0x1400b49c4]
mov word [rbp + 0x3d0], ax
xor edx, edx
mov r8d, 0x286
lea rcx, [rbp + 0x3d2]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x50]
lea rdx, str._s__s__s
lea rcx, [rbp + 0x3d0]
call fcn.1400acf6c
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x58], rax
lea rax, [0x1400b5a24]
cmp word [rdi], r15w
cmove rdi, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400acae8
mov ecx, 1
xor r8d, r8d
lea edx, [rcx + 3]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], r15
mov r9d, 0x60005330
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400acaf9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x770]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret