Function at 0x100401e20
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3e0
mov qword [r11 - 0x250], 0xfffffffffffffffe
mov rax, qword [0x100420010]
xor rax, rsp
mov qword [rsp + 0x3d8], rax
mov word [rsp + 0x54], r9w
mov r13, r8
mov dword [rsp + 0xe0], edx
mov qword [rsp + 0x1c0], rcx
mov qword [r11 - 0x330], r8
lea rax, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukonincykw_debug.hxx
mov qword [rsp + 0x68], rax
lea rax, str.INCDEBGH
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x4ac
mov qword [rsp + 0x7c], 0x4000
xor edi, edi
mov dword [rsp + 0xd8], 0x1000000
mov qword [r11 - 0x390], rdi
mov qword [r11 - 0x388], rdi
mov qword [r11 - 0x380], rdi
mov qword [r11 - 0x378], rdi
mov qword [r11 - 0x370], rdi
mov qword [r11 - 0x368], rdi
mov qword [r11 - 0x360], rdi
mov qword [r11 - 0x358], rdi
mov qword [r11 - 0x350], rdi
mov qword [r11 - 0x348], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xf0], edi
lea r12, str.CYKWFunctionTracer::LogError
mov qword [r11 - 0x320], r12
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x318], rax
mov r8d, dword [rsp + 0x78]
mov dword [r11 - 0x310], r8d
mov r14d, dword [rsp + 0x7c]
mov dword [r11 - 0x30c], r14d
mov r15d, dword [r11 - 0x398]
mov dword [r11 - 0x308], r15d
lea rbx, [0x1004243d0]
lea esi, [rdi + 2]
nop dword [rax + rax]
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x100401f9c
cmp dword [rcx + 0x28], 0
je 0x100401f9c
mov rax, qword [rcx]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov rdx, qword [rsp + 0x68]
call qword [rax + 8]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea rdx, [0x10041465c]
call qword [rax + 0x18]
mov rcx, qword [rbx]
call fcn.1004067a0
mov r8d, dword [rsp + 0x78]
add rbx, 8
sub rsi, 1
jne 0x100401f50
lea r14d, [rsi + 0xa]
cmp byte [rsp + 0xdb], sil
je 0x100401fdb
lea rbx, [rsp + 0x88]
mov esi, r14d
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x100401fd1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx], rdi
add rbx, 8
sub rsi, 1
jne 0x100401fc0
lea rcx, [0x100408d90]
call qword [sym.imp.VCRUNTIME140.dll__set_se_translator]
mov r12, qword [rsp + 0x1c0]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x340]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [rsp + 0x390], rax
mov qword [rsp + 0x398], rax
mov qword [rsp + 0x3a0], rax
mov qword [rsp + 0x3a8], rax
mov r8, qword [r13 + 8]
mov ebx, 8
mov ecx, ebx
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x158], r8
mov edx, 0x20
mov qword [rsp + 0x160], rdx
lea rax, [rsp + 0x390]
mov qword [rsp + 0x128], rax
mov r9, rdi
mov qword [rsp + 0x130], rdi
test rdx, rdx
je 0x1004020b7
test rcx, rcx
je 0x1004020cd
movzx r10d, byte [r8]
test r10b, r10b
je 0x1004020cd
mov byte [rax], r10b
inc rax
mov qword [rsp + 0x128], rax
inc r8
mov qword [rsp + 0x158], r8
dec rdx
mov qword [rsp + 0x160], rdx
dec rcx
mov qword [rsp + 0x168], rcx
inc r9
mov qword [rsp + 0x130], r9
jmp 0x100402068
dec rax
mov qword [rsp + 0x128], rax
dec r9
mov qword [rsp + 0x130], r9
mov byte [rax], 0
mov r9d, r14d
mov r8d, 0x22
lea rdx, [rsp + 0x3b0]
mov ecx, dword [r13 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa_s]
mov rcx, rbx
mov qword [rsp + 0x180], rbx
lea r8, [rsp + 0x3b0]
mov qword [rsp + 0x170], r8
mov edx, 0x18
mov qword [rsp + 0x178], rdx
lea rax, [rsp + 0x398]
mov qword [rsp + 0x138], rax
mov r9, rdi
mov qword [rsp + 0x140], rdi
nop
test rdx, rdx
je 0x10040217f
test rcx, rcx
je 0x100402195
movzx r10d, byte [r8]
test r10b, r10b
je 0x100402195
mov byte [rax], r10b
inc rax
mov qword [rsp + 0x138], rax
inc r8
mov qword [rsp + 0x170], r8
dec rdx
mov qword [rsp + 0x178], rdx
dec rcx
mov qword [rsp + 0x180], rcx
inc r9
mov qword [rsp + 0x140], r9
jmp 0x100402130
dec rax
mov qword [rsp + 0x138], rax
dec r9
mov qword [rsp + 0x140], r9
mov byte [rax], 0
mov r8, qword [r12 + 0x10]
mov rcx, rbx
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x188], r8
mov edx, 0x10
mov qword [rsp + 0x190], rdx
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x148], rax
mov r9, rdi
mov qword [rsp + 0x150], rdi
test rdx, rdx
je 0x100402227
test rcx, rcx
je 0x10040223d
movzx r10d, byte [r8]
test r10b, r10b
je 0x10040223d
mov byte [rax], r10b
inc rax
mov qword [rsp + 0x148], rax
inc r8
mov qword [rsp + 0x188], r8
dec rdx
mov qword [rsp + 0x190], rdx
dec rcx
mov qword [rsp + 0x198], rcx
inc r9
mov qword [rsp + 0x150], r9
jmp 0x1004021d8
dec rax
mov qword [rsp + 0x148], rax
dec r9
mov qword [rsp + 0x150], r9
mov byte [rax], 0
mov r9d, r14d
mov r8d, 0x22
lea rdx, [rsp + 0x3b0]
mov ecx, dword [r12 + 0x18]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa_s]
mov qword [rsp + 0x1b0], rbx
lea rdx, [rsp + 0x3b0]
mov qword [rsp + 0x1a0], rdx
mov rcx, rbx
mov qword [rsp + 0x1a8], rbx
lea rax, [rsp + 0x3a8]
mov qword [rsp + 0x118], rax
mov r8, rdi
mov qword [rsp + 0x120], rdi
nop word [rax + rax]
test rcx, rcx
je 0x1004022ef
test rbx, rbx
je 0x100402305
movzx r9d, byte [rdx]
test r9b, r9b
je 0x100402305
mov byte [rax], r9b
inc rax
mov qword [rsp + 0x118], rax
inc rdx
mov qword [rsp + 0x1a0], rdx
dec rcx
mov qword [rsp + 0x1a8], rcx
dec rbx
mov qword [rsp + 0x1b0], rbx
inc r8
mov qword [rsp + 0x120], r8
jmp 0x1004022a0
dec rax
mov qword [rsp + 0x118], rax
dec r8
mov qword [rsp + 0x120], r8
mov byte [rax], 0
movzx ebx, word [r13 + 0x70]
movzx edx, di
mov word [rsp + 0x50], dx
cmp dx, bx
jae 0x100402335
cmp dx, 0xa
jae 0x100402330
movzx ecx, dx
mov rax, qword [r13 + rcx*8 + 0x20]
mov qword [rsp + rcx*8 + 0x340], rax
inc dx
jmp 0x100402310
mov rdx, qword [0x100420748]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x1004024c4
xor r8d, r8d
lea rax, [rsp + 0x390]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x340]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x20
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0xe0]
movzx edx, word [rsp + 0x54]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10040243c
lea rbx, [rsp + 0x1d0]
mov qword [rsp + 0x60], rbx
lea r15, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukonincykw_debug.hxx
mov qword [rsp + 0x1d0], r15
lea r12, str.INCDEBGH
mov qword [rsp + 0x1d8], r12
mov dword [rsp + 0x1e0], 0x4e9
mov dword [rsp + 0x1e4], 0x4000
mov dword [rsp + 0x1e8], edi
mov word [rsp + 0x240], di
mov byte [rsp + 0x242], al
mov byte [rsp + 0x243], 1
movzx ecx, di
mov word [rsp + 0x58], cx
cmp cx, 0xa
jae 0x10040241a
movzx eax, cx
mov qword [rsp + rax*8 + 0x1f0], rdi
inc cx
jmp 0x1004023ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Error_on_ReportEventW_0x_08lx
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.100401860
jmp 0x10040244a
lea r15, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukonincykw_debug.hxx
lea r12, str.INCDEBGH
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
je 0x100402525
jmp 0x10040246b
lea rcx, [rsp + 0xf0]
call fcn.1004016e0
nop
cmp byte [r13 + 0x73], 0
je 0x10040249f
lea rbx, [r13 + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x100402495
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx], rdi
add rbx, 8
sub r14, 1
jne 0x100402484
mov rcx, qword [rsp + 0x3d8]
xor rcx, rsp
call fcn.10040fdf0
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rax, [rsp + 0x248]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x4d9
lea r8, str.INCDEBGH
lea rdx, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukonincykw_debug.hxx
lea rcx, [rsp + 0x248]
call fcn.100401340
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x20], eax
lea r9, str.Error_on_RegisterEventSourceW_0x_08lx
mov r8d, 0x8000ffff
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.100401af0
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x4ee
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x2c0]
call fcn.100401340
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x20], eax
lea r9, str.Error_on_DeregisterEventSource_0x_08lx
mov r8d, 0x8000ffff
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.100401af0
int3