Function at 0x1019500
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
movzx eax, word [0x01001c38]
mov word [rsp + 0x80], ax
lea rax, [rsp + 0x82]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x50], ax
movzx eax, word [0x01001c38]
mov word [rsp + 0x480], ax
lea rax, [rsp + 0x482]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov dword [rsp + 0x584], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x588], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x590], 0
mov dword [rsp + 0x59c], 1
mov dword [rsp + 0x580], 0
mov dword [rsp + 0x598], 0
mov dword [rsp + 0x584], 0
jmp 0x1019605
mov eax, dword [rsp + 0x584]
add eax, 1
mov dword [rsp + 0x584], eax
mov rax, qword [rsp + 0x5c0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x584], eax
jge 0x101979b
mov edx, dword [rsp + 0x584]
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1019796
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x1e0], 8
jne 0x1019653
jmp 0x10195f4
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x1ec], 0
jne 0x1019663
jmp 0x10195f4
mov rax, qword [rsp + 0x60]
add rax, 0x10c
mov rdx, rax
mov rcx, qword [rsp + 0x5d0]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019688
jmp 0x10195f4
mov rax, qword [rsp + 0x5d8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1e4]
cmp dword [rax], ecx
jne 0x1019710
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x200]
test eax, eax
je 0x10196d3
mov rax, qword [rsp + 0x60]
add rax, 0x200
mov rdx, rax
mov rcx, qword [rsp + 0x5e0]
call fcn.0101e1b0
test eax, eax
jne 0x10196d3
jmp 0x10195f4
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2d0]
test eax, eax
je 0x101970b
mov rax, qword [rsp + 0x60]
add rax, 0x2d0
mov rcx, qword [rsp + 0x5d8]
add rcx, 8
mov rdx, rax
call fcn.0101e150
test eax, eax
je 0x101970b
jmp 0x10195f4
jmp 0x101979b
mov rax, qword [rsp + 0x5d8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1e8]
cmp dword [rax + 4], ecx
jne 0x1019796
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x200]
test eax, eax
je 0x101975c
mov rax, qword [rsp + 0x60]
add rax, 0x200
mov rdx, rax
mov rcx, qword [rsp + 0x5e0]
call fcn.0101e1b0
test eax, eax
jne 0x101975c
jmp 0x10195f4
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2d0]
test eax, eax
je 0x1019794
mov rax, qword [rsp + 0x60]
add rax, 0x2d0
mov rcx, qword [rsp + 0x5d8]
add rcx, 8
mov rdx, rax
call fcn.0101e150
test eax, eax
je 0x1019794
jmp 0x10195f4
jmp 0x101979b
jmp 0x10195f4
mov rax, qword [rsp + 0x5c0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x584], eax
jne 0x10197b8
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x60], 0
je 0x1019878
movsxd rax, dword [rsp + 0x584]
lea rcx, [0x01066948]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x584]
add eax, 1
mov dword [rsp + 0x584], eax
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [rsp + 0x70]
cmp dword [rax], ecx
jne 0x101984d
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
mov rax, qword [rsp + 0x5d8]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9d, 4
mov r8d, 0xc0000143
mov edx, 2
mov ecx, 3
call fcn.01033610
mov qword [rsp + 0x60], 0
jmp 0x1019865
cmp dword [rsp + 0x70], 0
je 0x1019865
cmp dword [rsp + 0x584], 0x200
jl 0x10197c4
cmp dword [0x010676b0], 0
jne 0x1019878
mov rax, qword [rsp + 0x60]
jmp 0x1019dfe
cmp qword [rsp + 0x5c8], 0
je 0x101988c
cmp dword [0x010683dc], 0
jne 0x1019896
mov rax, qword [rsp + 0x60]
jmp 0x1019dfe
lea r9, [rsp + 0x50]
mov r8d, 0x100
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0x5c8]
call fcn.0101d2a0
movzx eax, word [0x01066128]
test eax, eax
je 0x1019d08
lea rdx, [0x01067bf8]
lea rcx, [0x01066128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019d08
lea rdx, [rsp + 0x480]
lea rcx, [0x01066128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019d08
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01066230]
cmp dword [rax + 4], ecx
jl 0x1019d08
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019d08
lea rdx, [0x010683f0]
lea rcx, [0x01066128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x1019952
cmp qword [0x010683e0], 0
jne 0x1019984
lea r8, [0x01066128]
mov edx, 0x80
lea rcx, [0x010683f0]
call fcn.01013c30
lea rcx, [0x010683f0]
call fcn.0101cd70
test eax, eax
jne 0x1019984
mov rax, qword [rsp + 0x60]
jmp 0x1019dfe
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
lea rcx, [0x01066128]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x5d8]
mov ecx, dword [rcx]
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8d, 0xcb
xor edx, edx
mov ecx, 3
call fcn.01033fa0
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x34]
mov rcx, qword [rsp + 0x5c8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax + 0x1a]
test eax, eax
je 0x1019b29
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax + 0x1a]
shl rax, 3
mov r8d, 0x4ec
lea rdx, [0x01002ea0]
mov ecx, eax
call fcn.01014dd0
mov qword [rsp + 0x590], rax
mov rax, qword [rsp + 0x590]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1019b29
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x5c8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x588], rax
mov rax, qword [rsp + 0x590]
mov rcx, qword [rsp + 0x588]
mov qword [rax], rcx
mov rax, qword [rsp + 0x590]
add rax, 8
mov qword [rsp + 0x590], rax
mov dword [rsp + 0x584], 1
jmp 0x1019aa0
mov eax, dword [rsp + 0x584]
add eax, 1
mov dword [rsp + 0x584], eax
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax + 0x1a]
cmp dword [rsp + 0x584], eax
jge 0x1019b29
mov rax, qword [rsp + 0x588]
movzx eax, word [rax]
test eax, eax
je 0x1019ae9
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x588], rax
jae 0x1019ae9
mov rax, qword [rsp + 0x588]
add rax, 2
mov qword [rsp + 0x588], rax
jmp 0x1019ab5
mov rax, qword [rsp + 0x588]
add rax, 2
mov qword [rsp + 0x588], rax
mov rax, qword [rsp + 0x590]
mov rcx, qword [rsp + 0x588]
mov qword [rax], rcx
mov rax, qword [rsp + 0x590]
add rax, 8
mov qword [rsp + 0x590], rax
jmp 0x1019a8f
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax + 0x1a]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x5c8]
mov r9d, dword [rax + 0x14]
mov rax, qword [rsp + 0x5c8]
movzx r8d, word [rax + 0x1c]
mov rax, qword [rsp + 0x5c8]
movzx edx, word [rax + 0x18]
mov rcx, qword [0x010683e0]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1019bb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x598], eax
mov dword [rsp + 0x59c], 0
jmp 0x1019bcc
mov dword [rsp + 0x598], 0
mov dword [rsp + 0x59c], 1
cmp dword [rsp + 0x59c], 0
jne 0x1019cf1
mov eax, dword [rsp + 0x598]
and eax, 0xffff
mov r8d, 0x400
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.010529a0
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 2
lea rcx, [0x01066128]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9d, 6
mov r8d, 0xc000012c
mov edx, 1
mov ecx, 3
call fcn.01033610
cmp dword [rsp + 0x598], 6
jne 0x1019cf1
lea rax, [0x010683f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x4000013a
mov edx, 4
mov ecx, 3
call fcn.01033610
lea rcx, [0x010683f0]
call fcn.0101cd70
test eax, eax
je 0x1019cf1
lea rax, [0x010683f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x4000013b
mov edx, 4
mov ecx, 3
call fcn.01033610
cmp dword [rsp + 0x580], 0
jne 0x1019cf1
mov dword [rsp + 0x580], 1
jmp 0x1019b29
cmp qword [rsp + 0x58], 0
je 0x1019d03
mov rcx, qword [rsp + 0x58]
call fcn.01015550
jmp 0x1019df9
movzx eax, word [0x01066128]
test eax, eax
je 0x1019d8d
lea rdx, [rsp + 0x480]
lea rcx, [0x01066128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x1019d8d
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01066230]
cmp dword [rax + 4], ecx
jl 0x1019d8d
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
lea rcx, [rsp + 0x480]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9d, 4
mov r8d, 0xc000013f
mov edx, 1
mov ecx, 3
call fcn.01033610
jmp 0x1019df9
movzx eax, word [0x01066128]
test eax, eax
je 0x1019df9
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x1019df9
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01066230]
cmp dword [rax + 4], ecx
jl 0x1019df9
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9d, 2
mov r8d, 0xc0000140
mov edx, 1
mov ecx, 3
call fcn.01033610
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x5b0
pop rdi
ret