Function at 0x100431c20
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf28]
mov eax, 0x1028
call fcn.10046b370
sub rsp, rax
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0xf00], rax
mov r14d, r8d
mov dword [rsp + 0x54], r8d
movzx ebx, dx
mov word [rsp + 0x50], dx
mov r12d, ecx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rcx, [rbp + 0x500]
xor edx, edx
mov qword [rbp - 0x20], rax
mov r8d, 0x400
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0xb00]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x1004a90d8]
lea r8, [rbp + 0x400]
xor r15d, r15d
mov r9d, 0x80
lea edx, [r15 + 0x17]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x900]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rbp + 0xf78]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r13d, eax
lea ecx, [rax*2]
cmp ecx, r8d
jne 0x100432145
test r8d, r8d
js 0x100432145
cmp eax, 0x11
jge 0x100432145
mov qword [rsp + 0x1020], rsi
xor esi, esi
mov qword [rsp + 0x1018], rdi
lea rdi, [rbp + 0xf80]
test eax, eax
jle 0x100431dcc
lea r14, [rsp + 0x60]
cmp esi, 0x10
jae 0x100431dc2
mov ecx, dword [rdi]
add rdi, 8
sub ecx, 1
je 0x100431d85
cmp ecx, 1
jne 0x100431db7
mov rax, qword [rdi]
add rdi, 8
mov qword [r14], rax
jmp 0x100431db7
mov r9d, dword [rdi]
lea rbx, [rbp + 0x900]
movsxd rax, r15d
lea r8, [0x100471ea8]
shl rax, 5
add rdi, 8
add rbx, rax
mov edx, reloc.ODBC32.dll_SQLFreeStmt
mov rcx, rbx
call fcn.10040b460
inc r15d
mov qword [r14], rbx
inc esi
add r14, 8
cmp esi, r13d
jl 0x100431d64
mov r14d, dword [rsp + 0x54]
movzx ebx, word [rsp + 0x50]
mov eax, 1
movzx ecx, bx
lea ebx, [rax + 1]
lea r15d, [rax + 2]
sub ecx, eax
je 0x100431df6
sub ecx, eax
je 0x100431dec
mov edi, r15d
lea r9d, [rax + 0x3e]
jmp 0x100431dfe
mov edi, ebx
mov r9d, 0x2b
jmp 0x100431dfe
mov edi, eax
mov r9d, 0x21
lea r8, [0x1004786e4]
mov edx, reloc.ODBC32.dll_SQLFreeStmt
lea rcx, [rbp - 0x20]
call fcn.10040b460
test r12b, 1
je 0x100431f65
cmp qword [0x1004a9368], 0
je 0x100431f51
call fcn.1004342d0
movzx esi, al
lea rcx, [0x1004a92b8]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100431e78
cmp dword [0x1004a8ebc], eax
je 0x100431e6b
test sil, sil
je 0x100431e6b
lea rdx, str.LoggerReportEvent
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a92b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100431e99
test sil, sil
je 0x100431e99
lea rdx, str.LoggerReportEvent
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
movzx ecx, r14w
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x100431ead
mov r15d, 1
jmp 0x100431ee2
lea eax, [rcx - 0xc8]
cmp eax, 0x63
ja 0x100431ec4
movzx ebx, r15w
mov r15d, 1
jmp 0x100431ee2
add ecx, 0xfffffed4
mov r15d, 1
cmp ecx, 0x63
mov r8d, 4
movzx ebx, r15w
cmovbe bx, r8w
movzx edx, word [rsp + 0x50]
lea rax, [rsp + 0x60]
mov rcx, qword [0x1004a9368]
xor esi, esi
mov qword [rsp + 0x40], rsi
mov r9d, r14d
mov qword [rsp + 0x38], rax
movzx r8d, bx
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], r13w
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
call fcn.1004342d0
lea rcx, [0x1004a92b8]
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], esi
je 0x100431f6d
test bl, bl
je 0x100431f6d
lea rdx, str.LoggerReportEvent
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
jmp 0x100431f6d
cmp dword [0x1004a9180], 0
mov r15d, 1
je 0x100431f6b
or r12d, ebx
jmp 0x100431f6b
mov r15d, 1
xor esi, esi
test r12b, 2
jne 0x100431f8a
and r12d, 1
je 0x100432135
cmp dword [0x1004a9180], 0
je 0x100432135
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x1004a92a0]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp]
mov dword [rsp + 0x28], 0x200
mov r8d, r14d
mov qword [rsp + 0x20], rax
mov ecx, 0x2800
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x100432015
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x400
lea rdx, [rbp + 0xb00]
mov ecx, eax
call fcn.10044bfe0
cmp word [rbp + 0xb00], 0
lea rdx, [rbp + 0x400]
lea rax, [rbp + 0xb00]
mov r9d, r14d
cmove rax, rdx
mov r8d, 0x173
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, r15d
call fcn.100432180
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsrev]
lea rax, [rbp]
mov ebx, esi
movzx ecx, word [rax]
cmp cx, 0xa
je 0x100432034
cmp cx, 0xd
jne 0x10043203c
inc ebx
add rax, 2
jmp 0x100432025
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsrev]
mov rdx, 0xffffffffffffffff
lea rax, [rbp]
mov rcx, rdx
inc rcx
cmp word [rax + rcx*2], 0
jne 0x100432054
movsxd rax, ebx
sub rcx, rax
add rcx, rcx
cmp rcx, 0x400
jae 0x100432166
mov word [rbp + rcx], si
lea rax, [rbp]
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x100432080
cmp edx, 3
jl 0x1004320c4
movsxd rax, edx
lea rcx, [rax*2 - 2]
cmp word [rbp + rcx], 0x2e
jne 0x1004320c4
cmp word [rbp + rax*2 - 4], 0x2e
je 0x1004320c4
cmp word [rbp + rax*2 - 6], 0x2e
je 0x1004320c4
cmp rcx, 0x400
jae 0x100432166
mov word [rbp + rcx], si
cmp word [rbp], 0
je 0x100432135
cmp dword [0x1004a9180], 0
lea r9, [rbp - 0x20]
mov edx, 0x200
jne 0x1004320fb
lea rax, [rbp]
lea r8, str._s__LOG___s
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x500]
call fcn.10040b460
jmp 0x10043211f
lea rcx, [rbp]
movzx eax, r14w
mov qword [rsp + 0x28], rcx
lea r8, str._s___03ld___s
lea rcx, [rbp + 0x500]
mov dword [rsp + 0x20], eax
call fcn.10040b460
mov r8d, edi
mov word [rbp + 0x8fe], si
lea rcx, [rbp + 0x500]
call fcn.100432450
mov rsi, qword [rsp + 0x1020]
mov rdi, qword [rsp + 0x1018]
mov rcx, qword [rbp + 0xf00]
xor rcx, rsp
call fcn.100469360
add rsp, 0x1028
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
call fcn.1004694e8
int3