Function at 0x1019720
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 [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
movzx eax, word [0x01001c50]
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 [0x01001c50]
mov word [rsp + 0x50], ax
movzx eax, word [0x01001c50]
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 0x1019825
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 0x10199bb
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 0x10199b6
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x1e0], 8
jne 0x1019873
jmp 0x1019814
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x1ec], 0
jne 0x1019883
jmp 0x1019814
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 0x10198a8
jmp 0x1019814
mov rax, qword [rsp + 0x5d8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1e4]
cmp dword [rax], ecx
jne 0x1019930
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x200]
test eax, eax
je 0x10198f3
mov rax, qword [rsp + 0x60]
add rax, 0x200
mov rdx, rax
mov rcx, qword [rsp + 0x5e0]
call fcn.0101e3c0
test eax, eax
jne 0x10198f3
jmp 0x1019814
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2d0]
test eax, eax
je 0x101992b
mov rax, qword [rsp + 0x60]
add rax, 0x2d0
mov rcx, qword [rsp + 0x5d8]
add rcx, 8
mov rdx, rax
call fcn.0101e360
test eax, eax
je 0x101992b
jmp 0x1019814
jmp 0x10199bb
mov rax, qword [rsp + 0x5d8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1e8]
cmp dword [rax + 4], ecx
jne 0x10199b6
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x200]
test eax, eax
je 0x101997c
mov rax, qword [rsp + 0x60]
add rax, 0x200
mov rdx, rax
mov rcx, qword [rsp + 0x5e0]
call fcn.0101e3c0
test eax, eax
jne 0x101997c
jmp 0x1019814
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2d0]
test eax, eax
je 0x10199b4
mov rax, qword [rsp + 0x60]
add rax, 0x2d0
mov rcx, qword [rsp + 0x5d8]
add rcx, 8
mov rdx, rax
call fcn.0101e360
test eax, eax
je 0x10199b4
jmp 0x1019814
jmp 0x10199bb
jmp 0x1019814
mov rax, qword [rsp + 0x5c0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x584], eax
jne 0x10199d8
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x60], 0
je 0x1019a98
movsxd rax, dword [rsp + 0x584]
lea rcx, [0x01067948]
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 0x1019a6d
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.010341e0
mov qword [rsp + 0x60], 0
jmp 0x1019a85
cmp dword [rsp + 0x70], 0
je 0x1019a85
cmp dword [rsp + 0x584], 0x200
jl 0x10199e4
cmp dword [0x010686b0], 0
jne 0x1019a98
mov rax, qword [rsp + 0x60]
jmp 0x101a01e
cmp qword [rsp + 0x5c8], 0
je 0x1019aac
cmp dword [0x010693dc], 0
jne 0x1019ab6
mov rax, qword [rsp + 0x60]
jmp 0x101a01e
lea r9, [rsp + 0x50]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0x5c8]
call fcn.0101d4b0
movzx eax, word [0x01067128]
test eax, eax
je 0x1019f28
lea rdx, [0x01068bf8]
lea rcx, [0x01067128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019f28
lea rdx, [rsp + 0x480]
lea rcx, [0x01067128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019f28
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01067230]
cmp dword [rax + 4], ecx
jl 0x1019f28
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
je 0x1019f28
lea rdx, [0x010693f0]
lea rcx, [0x01067128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x1019b72
cmp qword [0x010693e0], 0
jne 0x1019ba4
lea r8, [0x01067128]
mov edx, 0x80
lea rcx, [0x010693f0]
call fcn.0105ab90
lea rcx, [0x010693f0]
call fcn.0101cf80
test eax, eax
jne 0x1019ba4
mov rax, qword [rsp + 0x60]
jmp 0x101a01e
mov rax, qword [rsp + 0x5c8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
lea rcx, [0x01067128]
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.01034b80
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 0x1019d49
mov rax, qword [rsp + 0x5c8]
movzx eax, word [rax + 0x1a]
shl rax, 3
mov r8d, 0x4ec
lea rdx, [0x01002eb0]
mov ecx, eax
call fcn.01014ff0
mov qword [rsp + 0x590], rax
mov rax, qword [rsp + 0x590]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1019d49
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 0x1019cc0
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 0x1019d49
mov rax, qword [rsp + 0x588]
movzx eax, word [rax]
test eax, eax
je 0x1019d09
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x588], rax
jae 0x1019d09
mov rax, qword [rsp + 0x588]
add rax, 2
mov qword [rsp + 0x588], rax
jmp 0x1019cd5
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 0x1019caf
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 [0x010693e0]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1019dd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x598], eax
mov dword [rsp + 0x59c], 0
jmp 0x1019dec
mov dword [rsp + 0x598], 0
mov dword [rsp + 0x59c], 1
cmp dword [rsp + 0x59c], 0
jne 0x1019f11
mov eax, dword [rsp + 0x598]
and eax, 0xffff
mov r8d, 0x400
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.01053650
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, [0x01067128]
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.010341e0
cmp dword [rsp + 0x598], 6
jne 0x1019f11
lea rax, [0x010693f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x4000013a
mov edx, 4
mov ecx, 3
call fcn.010341e0
lea rcx, [0x010693f0]
call fcn.0101cf80
test eax, eax
je 0x1019f11
lea rax, [0x010693f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
mov r8d, 0x4000013b
mov edx, 4
mov ecx, 3
call fcn.010341e0
cmp dword [rsp + 0x580], 0
jne 0x1019f11
mov dword [rsp + 0x580], 1
jmp 0x1019d49
cmp qword [rsp + 0x58], 0
je 0x1019f23
mov rcx, qword [rsp + 0x58]
call fcn.01015770
jmp 0x101a019
movzx eax, word [0x01067128]
test eax, eax
je 0x1019fad
lea rdx, [rsp + 0x480]
lea rcx, [0x01067128]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x1019fad
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01067230]
cmp dword [rax + 4], ecx
jl 0x1019fad
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.010341e0
jmp 0x101a019
movzx eax, word [0x01067128]
test eax, eax
je 0x101a019
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x101a019
mov rax, qword [rsp + 0x5d8]
mov ecx, dword [0x01067230]
cmp dword [rax + 4], ecx
jl 0x101a019
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.010341e0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x5b0
pop rdi
ret