Function at 0x4f6cf8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1986
push 0
push 0
dec ecx
jne 0x4f6d01
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x4f7206
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
push 0
call sub.advapi32.dll_OpenEventLogA
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4f71d3
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.advapi32.dll_GetNumberOfEventLogRecords
test eax, eax
je 0x4f71d3
cmp dword [ebp - 0x18], 0
je 0x4f71d3
lea eax, [ebp - 0xc400]
xor ecx, ecx
mov edx, 0xc388
call fcn.00403450
jmp 0x4f71a1
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc400]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x10]
jb 0x4f71ca
push 0
push 0x989680
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.004063ec
add eax, 0xd53e8000
adc edx, 0x19db1de
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
and eax, 0xffffffff
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x78]
mov dword [ebp - 0xcc00], eax
mov byte [ebp - 0xcbfc], 0
movzx eax, word [ebp - 0x76]
mov dword [ebp - 0xcbf8], eax
mov byte [ebp - 0xcbf4], 0
movzx eax, word [ebp - 0x72]
mov dword [ebp - 0xcbf0], eax
mov byte [ebp - 0xcbec], 0
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0xcbe8], eax
mov byte [ebp - 0xcbe4], 0
movzx eax, word [ebp - 0x6e]
mov dword [ebp - 0xcbe0], eax
mov byte [ebp - 0xcbdc], 0
movzx eax, word [ebp - 0x6c]
mov dword [ebp - 0xcbd8], eax
mov byte [ebp - 0xcbd4], 0
lea edx, [ebp - 0xcc00]
mov ecx, 5
mov eax, 0x4f7220
call fcn.0040beb0
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x18]
cmp eax, 0x10
ja case.0x4f6e87.0
mov al, byte [eax + 0x4f6e8e]
jmp dword [eax*4 + 0x4f6e9f]
lea eax, [ebp - 0x38]
mov edx, 0x4f7248
call fcn.00405310
jmp 0x4f6f0f
lea eax, [ebp - 0x38]
mov edx, 0x4f7258
call fcn.00405310
jmp 0x4f6f0f
lea eax, [ebp - 0x38]
mov edx, 0x4f7268
call fcn.00405310
jmp 0x4f6f0f
lea eax, [ebp - 0x38]
mov edx, 0x4f727c
call fcn.00405310
jmp 0x4f6f0f
lea eax, [ebp - 0x38]
mov edx, 0x4f7294
call fcn.00405310
jmp 0x4f6f0f
lea eax, [ebp - 0x38]
mov edx, 0x4f72ac
call fcn.00405310
push dword [ebp - 0x38]
push 0x4f72bc
lea edx, [ebp - 0xcc04]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x18]
call fcn.0040a83c
push dword [ebp - 0xcc04]
push 0x4f72c8
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00405608
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1c]
call fcn.0040a83c
lea eax, [ebp - 0x40]
call fcn.00405278
mov dword [ebp - 0x18], 0x3e8
mov dword [ebp - 0x1c], 0x3e8
lea eax, [ebp - 0xc7e8]
xor ecx, ecx
mov edx, 0x3e8
call fcn.00403450
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4f6fd1
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xcbd0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc7e8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 4]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
test eax, eax
je 0x4f6fc0
lea edx, [ebp - 0x40]
lea eax, [ebp - 0xc7e8]
call fcn.0040b624
jmp 0x4f6fd1
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.0040a928
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0040a928
lea edx, [ebp - 0xcc08]
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040b624
mov eax, dword [ebp - 0xcc08]
lea edx, [ebp - 0x48]
call fcn.0049c748
push ebp
lea eax, [ebp - 0xcc0c]
call fcn.004f6bc4
pop ecx
mov edx, dword [ebp - 0xcc0c]
lea eax, [ebp - 0x4c]
call fcn.00405310
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0040a928
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0040a9e4
mov edx, eax
lea ecx, [ebp - 0x58]
mov eax, 0x4f72d4
call fcn.004f72e8
lea edx, [ebp - 0xcc10]
mov eax, dword [ebp - 8]
call fcn.0049c748
push dword [ebp - 0xcc10]
push 0x4f72e4
lea edx, [ebp - 0xcc14]
mov eax, dword [ebp - 0x34]
call fcn.0049c748
push dword [ebp - 0xcc14]
push 0x4f72e4
lea edx, [ebp - 0xcc18]
mov eax, dword [ebp - 0x38]
call fcn.0049c748
push dword [ebp - 0xcc18]
push 0x4f72e4
lea edx, [ebp - 0xcc1c]
mov eax, dword [ebp - 0x3c]
call fcn.0049c748
push dword [ebp - 0xcc1c]
push 0x4f72e4
lea edx, [ebp - 0xcc20]
mov eax, dword [ebp - 0x40]
call fcn.0049c748
push dword [ebp - 0xcc20]
push 0x4f72e4
lea edx, [ebp - 0xcc24]
mov eax, dword [ebp - 0x44]
call fcn.0049c748
push dword [ebp - 0xcc24]
push 0x4f72e4
lea edx, [ebp - 0xcc28]
mov eax, dword [ebp - 0x54]
call fcn.0049c748
push dword [ebp - 0xcc28]
push 0x4f72e4
lea edx, [ebp - 0xcc2c]
mov eax, dword [ebp - 0x48]
call fcn.0049c748
push dword [ebp - 0xcc2c]
push 0x4f72e4
lea edx, [ebp - 0xcc30]
mov eax, dword [ebp - 0x58]
call fcn.0049c748
push dword [ebp - 0xcc30]
push 0x4f72e4
lea edx, [ebp - 0xcc34]
mov eax, dword [ebp - 0x4c]
call fcn.0049c748
push dword [ebp - 0xcc34]
lea eax, [ebp - 0x50]
mov edx, 0x13
call fcn.00405608
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4f716c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4f717b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
ja 0x4f6d87
lea eax, [ebp - 0xc400]
xor ecx, ecx
mov edx, 0xc388
call fcn.00403450
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xc388
lea eax, [ebp - 0xc400]
push eax
push 0
push 9
mov eax, dword [ebp - 0x64]
push eax
call sub.advapi32.dll_ReadEventLogA
test eax, eax
jne 0x4f6d82
mov eax, dword [ebp - 0x64]
push eax
call sub.advapi32.dll_CloseEventLog
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f720d
lea eax, [ebp - 0xcc34]
mov edx, 0xd
call fcn.0040529c
lea eax, [ebp - 0x58]
mov edx, 0xa
call fcn.0040529c
lea eax, [ebp - 8]
call fcn.00405278
ret