Function at 0x1035ac0
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov qword [rsp + 0x180], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x188], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x190], rax
movzx eax, word [0x01001c50]
mov word [rsp + 0x1a0], ax
lea rax, [rsp + 0x1a2]
mov rdi, rax
xor eax, eax
mov ecx, 0x106
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x106
rep stosb byte [rdi], al
lea r8, [0x01069050]
mov edx, 0x84
lea rcx, [rsp + 0x1a0]
call fcn.0105ab90
mov r8, qword [rsp + 0x2f0]
mov edx, 0x84
lea rcx, [rsp + 0x70]
call fcn.0105ab90
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
cdqe
mov qword [rsp + 0x2b0], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
cdqe
mov rcx, qword [rsp + 0x2b0]
lea rax, [rcx + rax + 0x10]
mov dword [rsp + 0x50], eax
mov r8d, 0x7f5
lea rdx, [0x01007fb8]
mov ecx, dword [rsp + 0x50]
call fcn.01014ff0
mov qword [rsp + 0x188], rax
cmp qword [rsp + 0x188], 0
jne 0x1035c05
jmp 0x1035e44
movsxd rax, dword [rsp + 0x50]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x188]
call sub.MSVCR80.dll_memset
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x2e0]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x2e8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
add rax, 1
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov r8, rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x58]
call sub.MSVCR80.dll_memcpy
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR80.dll_wcslen]
add rax, 1
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR80.dll_wcslen]
lea rax, [rax + rax + 2]
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call sub.MSVCR80.dll_memcpy
lea rdx, [0x01068f40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x180], rax
cmp qword [rsp + 0x180], 0
je 0x1035e37
lea rcx, [0x01066b28]
call qword [0x01069178]
test eax, eax
jne 0x1035d7d
cmp dword [0x010689c0], 0
je 0x1035d70
cmp dword [0x01068484], 0
je 0x1035d70
lea rdx, [0x01007fb8]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066b28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x1035da3
cmp dword [0x01068484], 0
je 0x1035da3
lea rdx, [0x01007fb8]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0x40004a4b
mov r8w, 2
movzx edx, word [rsp + 0x2d0]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
lea rcx, [0x01066b28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x1035e29
cmp dword [0x01068484], 0
je 0x1035e29
lea rdx, [0x01007fb8]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x188]
call fcn.01015770
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x2c0
pop rdi
ret