Function at 0x465663
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f2ba
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x498070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.004659c7
push str.System
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x465898
mov dword [ebp - 0x3c], 0x10000
and dword [ebp - 0x40], 0
and dword [ebp - 0x54], 0
push dword [ebp - 0x3c]
call fcn.0043b0ea
pop ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x60], 0xa
and dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.00418e71
cmp eax, dword [ebp - 0x60]
jae 0x46587f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
push 0
push 9
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x46576f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x7a
jne 0x46576a
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
call fcn.0043aeb5
pop ecx
push dword [ebp - 0x40]
call fcn.0043b0ea
pop ecx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
push 0
push 9
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov dword [ebp - 0x58], eax
jmp 0x46576f
jmp 0x46587f
cmp dword [ebp - 0x58], 0
je 0x46587a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x74]
jae 0x46587a
push 0x28
call fcn.0043ae82
pop ecx
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
call fcn.0042c9c0
mov dword [ebp - 0x5c], eax
jmp 0x4657b0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 4
call fcn.0040c49d
mov eax, dword [ebp - 0x2c]
mov ax, word [eax + 0x1a]
mov word [ebp - 0x50], ax
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
jmp 0x4657fe
mov ax, word [ebp - 0x34]
add ax, 1
mov word [ebp - 0x34], ax
movzx eax, word [ebp - 0x34]
movzx ecx, word [ebp - 0x50]
cmp eax, ecx
jge 0x465849
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00402a51
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x1c
call fcn.004020f3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402e75
push dword [ebp - 0x44]
call fcn.004402a6
pop ecx
mov ecx, dword [ebp - 0x44]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x44], eax
jmp 0x4657f2
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.00418d01
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.00418e71
cmp eax, dword [ebp - 0x60]
jb 0x46586a
jmp 0x46587a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
jmp 0x465788
jmp 0x4656dc
cmp dword [ebp - 0x30], 0
je 0x465898
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
call fcn.0043aeb5
pop ecx
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x38], 0
je 0x4658ab
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
and dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a99c
mov esp, ebp
pop ebp
ret