Function at 0x102580a
Capabilities:
Access the windows event log

Disassembly:
push 0x34
mov eax, 0x1031db6
call fcn.01026025
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
jne 0x1025a5f
lea edi, [esi + 0x1c]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
test eax, eax
jle 0x1025856
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov edi, eax
jmp 0x1025858
xor edi, edi
lea ecx, [esi + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edi, eax
lea ecx, [ebp - 0x24]
call fcn.01024a8b
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x1025a4c
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
je 0x1025a39
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
test eax, eax
je 0x1025a39
xor edi, edi
inc edi
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, eax
cmp dword [ebp - 0x1c], ecx
jae 0x1025a1d
mov eax, dword [ebp - 0x1c]
xor edx, edx
push 0x64
pop ecx
div ecx
test edx, edx
jne 0x10258e3
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 6
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
cmp eax, ebx
jne 0x1025996
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x40], edi
cmp edi, 0x7a
jne 0x1025979
cmp dword [ebp - 0x18], ebx
je 0x1025926
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x20]
add eax, 0x400
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1025945
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
jmp 0x10258e3
mov esi, dword [esi + 0x28]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
mov eax, dword [ecx]
push 1
push 1
push 2
push ebx
push 0xc000c443
call dword [eax]
push 8
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.01024a8b
mov eax, esi
call fcn.010260d9
ret
push ebx
push 0xc000c443
mov esi, dword [esi + 0x28]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
mov esi, edi
jmp 0x1025965
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
mov ecx, esi
call fcn.010253c1
test al, al
jne 0x10259d7
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov edi, dword [ecx + eax + 4]
add edi, 0x10
mov dword [ebp - 0x3c], eax
push ebx
push 0xc000c443
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea ecx, [ecx + eax + 4]
call dword [edi]
mov dword [ebp - 4], ebx
jmp 0x1025a08
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x70]
cmp eax, 1
jg 0x1025a1d
inc dword [ebp - 0x1c]
jmp 0x10258be
mov byte [ebp - 0x11], 1
cmp dword [ebp - 0x18], ebx
je 0x1025832
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x1025832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
push 0xc000c441
jmp 0x102597f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
push 0xc000c442
jmp 0x102597f
mov esi, dword [ebp - 0x40]
jmp 0x1025965