Function at 0x1005e56
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 edi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0100378c
mov esi, eax
cmp esi, ebx
je 0x1005eab
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.01005199
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1006081
cmp dword [ebp + 0x10], ebx
je 0x1006081
push esi
call fcn.01005c9d
add esi, 0x18
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
jmp 0x1006081
push 0x998
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1006054
push dword [ebp + 0x10]
xor eax, eax
mov ecx, 0x266
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi + 8], eax
lea eax, [esi + 0xbc]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [esi + 0x2c6]
push eax
call edi
push esi
call fcn.01003275
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100604c
push ebx
push esi
call fcn.0100439d
cmp eax, 0xffffffff
jne 0x1005f1d
cmp edx, eax
je 0x100604c
mov eax, dword [esi + 0x98]
cmp eax, 1
je 0x1005f2c
cmp eax, ebx
jne 0x1005f41
push ebx
push esi
call fcn.01004734
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x100604c
call fcn.0100376a
mov eax, dword [0x1012d54]
cmp eax, dword [0x1012030]
push ebx
jae 0x1006014
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x1005fe2
push ebx
push ebx
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x1005fbf
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call fcn.01005dd6
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100603f
mov eax, dword [0x1012b44]
cmp eax, ebx
mov dword [0x1012b44], esi
jne 0x1005fa6
mov dword [esi], ebx
jmp 0x1005fa8
mov dword [esi], eax
push dword [0x1012b40]
inc dword [0x1012d54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1006045
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push 1
push ebx
push 0x800007f1
jmp 0x1006003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push 1
push ebx
push 0x800007e2
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x100603f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 1
push ebx
push 0x800007e3
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call fcn.010053fa
mov dword [ebp - 4], eax
push esi
call fcn.0100421d
call fcn.0100377b
jmp 0x1006081
push esi
call fcn.0100421d
jmp 0x1006081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push 1
push ebx
push 0x800007dc
push ebx
push 2
push dword [0x1012b30]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc