Function at 0x101232e
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10332fc
call fcn.01027f58
sub esp, 0xbc
mov eax, dword [0x10400ac]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x1001ac0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x9c], esp
push 0
push 0x4000
push 0x37b
push 0x1001ab4
push 0x1001a48
call fcn.01011a74
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.01011ae8
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 8
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
mov esi, dword [sym.imp.msvcrt.dll_strncpy]
call esi
push 0xa
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x18]
mov edi, dword [sym.imp.msvcrt.dll__ultoa]
call edi
push 8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
push 8
push dword [ebx + 8]
lea eax, [ebp - 0x24]
push eax
call esi
push 0xa
lea eax, [ebp - 0x58]
push eax
push dword [ebx + 0xc]
call edi
push 8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1c]
push eax
call esi
add esp, 0x48
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x68], ecx
xor esi, esi
mov dword [ebp - 0x5c], esi
cmp word [ebp - 0x5c], cx
jae 0x1012414
movzx eax, word [ebp - 0x5c]
shl eax, 2
mov edx, dword [ebp + eax + 0x24]
mov dword [ebp + eax - 0xc8], edx
inc dword [ebp - 0x5c]
jmp 0x10123f7
push 0x1001924
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x60], eax
cmp eax, esi
jne 0x1012479
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019f8
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x8c], esp
push esi
mov esi, 0x8000
push esi
push 0x398
mov edi, 0x1001ab4
push edi
mov ebx, 0x1001a48
push ebx
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011cb6
add esp, 0x50
jmp 0x1012488
mov esi, 0x8000
mov ebx, 0x1001a48
mov edi, 0x1001ab4
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc8]
push eax
push 0x20
push dword [ebp - 0x68]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x50]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x10124ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019b8
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0
push esi
push 0x3a7
push edi
push ebx
call fcn.01011a74
mov byte [ebp - 4], 5
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011c0f
add esp, 0x4c
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x1012541
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001968
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x88], esp
push 0
push esi
push 0x3ac
push edi
push ebx
call fcn.01011a74
mov byte [ebp - 4], 6
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011cb6
add esp, 0x50
and dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.01011b91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01011abc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret