Function at 0x101f9e5
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10a6184]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, 0x10a6184
cmp eax, esi
push edi
mov edi, dword [ebp + 0x1c]
je 0x101fa37
test byte [eax + 0x1c], 1
je 0x101fa37
cmp byte [eax + 0x19], 5
jb 0x101fa37
movzx ecx, word [ebp + 0xc]
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
push 0x1004a3c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101f790
mov eax, dword [0x10a6184]
and dword [ebp + 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x101fa74
cmp eax, esi
je 0x101fa68
test byte [eax + 0x1c], 2
je 0x101fa68
cmp byte [eax + 0x19], 2
jb 0x101fa68
push 0x1004a3c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov dword [ebp + 0x1c], 0x80004003
jmp 0x101fb99
cmp eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
je 0x101faa5
test byte [eax + 0x1c], 2
je 0x101faa5
cmp byte [eax + 0x19], 4
jb 0x101faa5
mov edi, 0x1004a3c
push edi
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
jmp 0x101faaa
mov edi, 0x1004a3c
xor eax, eax
mov dword [ebp + 0x14], eax
movzx ecx, word [ebp + 0x14]
cmp dword [ebp + ecx*4 - 0xc], eax
je 0x101fac3
inc dword [ebp + 0x14]
cmp word [ebp + 0x14], 3
jb 0x101faaf
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x101fb5b
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x101fafd
test byte [eax + 0x1c], 2
je 0x101fafd
cmp byte [eax + 0x19], 4
jb 0x101fafd
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x101fb50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp + 0x1c], eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x101fb50
test byte [eax + 0x1c], 2
je 0x101fb50
cmp byte [eax + 0x19], 2
jb 0x101fb50
push dword [ebp + 0x1c]
push edi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x101fb94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp + 0x1c], eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x101fbce
test byte [eax + 0x1c], 2
je 0x101fb99
cmp byte [eax + 0x19], 2
jb 0x101fb99
push dword [ebp + 0x1c]
push 0x1004a3c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x101fbce
test byte [eax + 0x1c], 1
je 0x101fbce
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 0x1c], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x101fbce
push dword [ebp + 0x1c]
push 0x1004a3c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x18