Function at 0x101236e
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x103333c
call fcn.01027f98
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 0x1001ac4
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x9c], esp
push 0
push 0x4000
push 0x37b
push 0x1001ab8
push 0x1001a48
call fcn.01011ab4
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.01011b28
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 0x1012454
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 0x1012437
push 0x1001924
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x60], eax
cmp eax, esi
jne 0x10124b9
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 ebx, 0x1001ab8
push ebx
mov edi, 0x1001a48
push edi
call fcn.01011ab4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011cf6
add esp, 0x50
jmp 0x10124c8
mov esi, 0x8000
mov ebx, 0x1001ab8
mov edi, 0x1001a48
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 0x101252f
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 ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011c4f
add esp, 0x4c
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x1012581
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 ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 3
call fcn.01011cf6
add esp, 0x50
and dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.01011bd1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01011afc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01027c7a
pop edi
pop esi
pop ebx
leave
ret