Function at 0x103ea3a
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10b30cc]
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov esi, 0x10b30cc
cmp eax, esi
je 0x103ea8c
test byte [eax + 0x1c], 1
je 0x103ea8c
cmp byte [eax + 0x19], 5
jb 0x103ea8c
movzx ecx, word [ebp + 0xc]
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
push 0x10038d0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105f5d3
mov eax, dword [0x10b30cc]
and dword [ebp + 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x103eac9
cmp eax, esi
je 0x103eabd
test byte [eax + 0x1c], 2
je 0x103eabd
cmp byte [eax + 0x19], 2
jb 0x103eabd
push 0x10038d0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov eax, dword [0x10b30cc]
mov dword [ebp + 0x1c], 0x80004003
jmp 0x103ebfe
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp eax, esi
je 0x103eafa
test byte [eax + 0x1c], 2
je 0x103eafa
cmp byte [eax + 0x19], 4
jb 0x103eafa
mov edi, 0x10038d0
push edi
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
jmp 0x103eaff
mov edi, 0x10038d0
xor eax, eax
mov dword [ebp + 0x14], eax
movzx ecx, word [ebp + 0x14]
cmp dword [ebp + ecx*4 - 0xc], eax
je 0x103eb18
inc dword [ebp + 0x14]
cmp word [ebp + 0x14], 3
jb 0x103eb04
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 0x103ebb8
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x103eb52
test byte [eax + 0x1c], 2
je 0x103eb52
cmp byte [eax + 0x19], 4
jb 0x103eb52
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
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 0x103ebad
call dword [fcn.010011dc]
cmp eax, ebx
jle 0x103eb84
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x1c], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x103ebad
test byte [eax + 0x1c], 2
je 0x103ebad
cmp byte [eax + 0x19], 2
jb 0x103ebad
push dword [ebp + 0x1c]
push edi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x103ebf9
call dword [fcn.010011dc]
cmp eax, ebx
jle 0x103ebcc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x1c], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x103ec33
test byte [eax + 0x1c], 2
je 0x103ebfe
cmp byte [eax + 0x19], 2
jb 0x103ebfe
push dword [ebp + 0x1c]
push 0x10038d0
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x103ec33
test byte [eax + 0x1c], 1
je 0x103ec33
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 0x103ec33
push dword [ebp + 0x1c]
push 0x10038d0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x18