Function at 0x10051460
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157604
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101ac034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0x10170a34
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x100514ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenEventLog_fail_0x_x
push 1
push 0x33
push 0x10170a5c
push 0x10170a90
call fcn.10145f00
add esp, 0x18
xor al, al
jmp 0x10051700
push 0xc
lea ecx, [ebp - 0x24]
call fcn.10001860
push 0x400
lea ecx, [ebp - 0x24]
call fcn.1004fb90
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100516e0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x24]
call fcn.1004fdb0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.1004fdd0
push eax
push 0
push 9
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x10051693
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x18]
jae 0x10051691
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x24]
call fcn.1004fdd0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0x654c664c
jne 0x10051653
push 0xcc
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0
je 0x10051594
mov ecx, dword [ebp - 0x50]
call fcn.10051720
mov dword [ebp - 0x48], eax
jmp 0x1005159b
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.100517a0
movzx edx, al
test edx, edx
je 0x1005162b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 8], ecx
jg 0x100515fd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x100515f1
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.100513f0
mov dword [ebp - 0x60], eax
jmp 0x100515f8
mov dword [ebp - 0x60], 0
jmp 0x10051691
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x18
call fcn.10012eb0
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x10051629
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
call edx
add esp, 8
jmp 0x10051653
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x1005164c
push 1
mov ecx, dword [ebp - 0x40]
call fcn.100513f0
mov dword [ebp - 0x5c], eax
jmp 0x10051653
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x14]
jg 0x10051681
jl 0x1005167f
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x68]
cmp eax, dword [edx + 0x10]
jae 0x10051681
jmp 0x10051691
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add edx, dword [ecx]
mov dword [ebp - 0x34], edx
jmp 0x10051541
jmp 0x100516db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100516ac
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.1004fc90
jmp 0x100516db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x100516d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadEventLog_error_0x_x
push 1
push 0x77
push str..._srcMoniterHelpereventLogUserOperateEvent.cpp
push str.CUserOperateEvent::QueryEvent
call fcn.10145f00
add esp, 0x18
jmp 0x100516e0
jmp 0x100514e8
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1004fc70
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret