Function at 0x180015980
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x180045338]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov eax, 0x70
mov word [rbp + 0x1f], ax
lea rcx, [rbp + 0x1f]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800159c3
movzx eax, word [0x18003d2a8]
mov word [rcx], ax
movzx eax, byte [0x18003d2aa]
mov byte [rcx + 2], al
lea rcx, [rbp + 0x1f]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1800159e7
movsd xmm0, qword [str.ority___]
movsd qword [rcx], xmm0
movzx eax, byte [0x18003d2b8]
mov byte [rcx + 8], al
mov r8d, 2
lea rdx, [0x18003d2bc]
lea rcx, [rbp + 0x2a]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str._MIN]
mov dword [rbp + 0x2b], eax
movzx eax, byte [0x18003d2c4]
mov byte [rbp + 0x2f], al
mov r8d, 2
lea rdx, [0x18003d2c8]
lea rcx, [rbp + 0x2f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8d, 2
lea rdx, [0x18003d2cc]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str.UM_PRI]
mov dword [rbp + 0x31], eax
movzx eax, word [0x18003d2d4]
mov word [rbp + 0x35], ax
mov eax, 0x4f
mov word [rbp + 0x37], ax
lea r8d, [rax - 0x4e]
lea rdx, [0x18003d2d8]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov dword [rbp + 0x39], 0x595449
mov r8d, 3
lea rdx, [0x18003d304]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rbp + 2], 0
mov r8d, 4
lea rdx, [0x18003d34c]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 3
lea rdx, [0x18003d36c]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov word [rbp + 9], 0x545f
movzx eax, word [0x18003d3db]
mov word [rbp + 0xb], ax
movzx eax, byte [0x18003d3dd]
mov byte [rbp + 0xd], al
mov eax, 0x4e5f
mov word [rbp + 0xe], ax
mov byte [rbp + 0x10], 0x4f
mov eax, dword [0x18003d41a]
mov dword [rbp + 0x11], eax
movzx eax, byte [0x18003d41e]
mov byte [rbp + 0x15], al
mov word [rbp + 0x16], 0x4f
mov r8d, 3
lea rdx, [0x18003d451]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov eax, 0x36
mov word [rbp - 0x21], ax
mov edx, 0x2e
mov word [rbp - 0x20], dx
mov eax, 0x30
mov word [rbp - 0x1f], ax
mov eax, 0x78
mov word [rbp - 0x1e], ax
mov eax, 0x64
mov word [rbp - 0x1d], ax
mov ecx, 0x2c
mov word [rbp - 0x1c], cx
mov eax, 0x35
mov word [rbp - 0x1b], ax
mov word [rbp - 0x1a], dx
mov eax, 0x52
mov word [rbp - 0x19], ax
mov eax, 0x53
mov word [rbp - 0x18], ax
mov word [rbp - 0x17], cx
mov dword [rbp - 0x16], 0x522e35
mov r8d, 0x54
mov word [rbp - 0x13], r8w
mov dword [rbp - 0x12], 0x2e36312c
mov edx, 0x49
mov word [rbp - 0xe], dx
mov eax, 0x4d
mov word [rbp - 0xd], ax
mov word [rbp - 0xc], ax
mov ecx, 0x45
mov word [rbp - 0xb], cx
mov eax, 0x44
mov word [rbp - 0xa], ax
mov word [rbp - 9], dx
mov eax, 0x41
mov word [rbp - 8], ax
mov word [rbp - 7], r8w
mov word [rbp - 6], cx
mov r12b, 1
lea edx, [rcx - 0x23]
lea rcx, [0x180044240]
call fcn.180016100
xor r15d, r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], r15b
lea rax, [rbp + 0x1f]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180015c20
mov r9d, 0x58
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x41]
call fcn.18001d9d0
test al, al
jne 0x180015c78
call qword [sym.imp.WINMM.dll_joyGetNumDevs]
cmp eax, 0xf
ja 0x180015df7
mov dword [rbp - 0x79], r15d
lea rdx, [rbp - 0x79]
xor ecx, ecx
call qword [sym.imp.WINMM.dll_joyGetThreshold]
test eax, eax
jne 0x180015df7
mov edx, dword [rbp - 0x79]
xor ecx, ecx
call qword [sym.imp.WINMM.dll_joySetThreshold]
jmp 0x180015df7
mov dword [rbp - 0x71], r15d
lea rdx, [rbp - 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov rdi, rax
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], 0xf
mov byte [rbp - 0x61], 0
mov qword [rbp - 0x69], r15
test rax, rax
je 0x180015cb0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rdi, r15
movsd xmm0, qword [0x1800442e8]
mulsd xmm0, qword [0x18003ea18]
addsd xmm0, qword [0x18003ea00]
cvttsd2si rax, xmm0
mov dword [rbp - 0x79], eax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x4a
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x79]
lea rcx, [0x180044268]
call fcn.180008120
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x71]
mov edx, ebx
lea rcx, [rbp + 0x1f]
call sub.RPCRT4.dll_MesEncodeFixedBufferHandleCreate
mov esi, eax
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_BackupEventLogA]
mov r14d, eax
lea r8, [rbp - 0x61]
xor edx, edx
mov ecx, 0x85
call fcn.180030960
test al, al
jne 0x180015d41
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x180015da9
movzx edi, r12b
test esi, esi
cmovne edi, r15d
test r14d, r14d
je 0x180015d6a
lea rdx, [rbp - 0x21]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenBackupEventLogA]
test rax, rax
je 0x180015d6a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
test dil, dil
je 0x180015d9e
mov qword [rbp - 0x79], r15
lea r8, [rbp - 0x79]
mov edx, ebx
lea rcx, [rbp + 0x1f]
call sub.RPCRT4.dll_MesDecodeBufferHandleCreate
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x180015d90
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x180015d9e
call sub.RPCRT4.dll_MesHandleFree
xor edx, edx
lea ecx, [rdx + 0x51]
call fcn.180006f90
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x180015de7
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015de2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015de2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800397ec
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], 0xf
mov byte [rbp - 0x61], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x180015e35
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800397ec
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180039fa0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret