Function at 0x10051990
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10153464
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101a5034]
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 0x1016b728
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x100519fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenEventLog_fail_0x_x
push 1
push 0x33
push 0x1016b750
push 0x1016b784
call fcn.101426f0
add esp, 0x18
xor al, al
jmp 0x10051c30
push 0xc
lea ecx, [ebp - 0x24]
call fcn.10001980
push 0x400
lea ecx, [ebp - 0x24]
call fcn.10050100
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x10051c10
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.10050320
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.10050340
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 0x10051bc3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x18]
jae 0x10051bc1
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x24]
call fcn.10050340
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0x654c664c
jne 0x10051b83
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 0x10051ac4
mov ecx, dword [ebp - 0x50]
call fcn.10051c50
mov dword [ebp - 0x48], eax
jmp 0x10051acb
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.10051cf0
movzx edx, al
test edx, edx
je 0x10051b5b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 8], ecx
jg 0x10051b2d
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 0x10051b21
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.10051920
mov dword [ebp - 0x60], eax
jmp 0x10051b28
mov dword [ebp - 0x60], 0
jmp 0x10051bc1
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x18
call fcn.100129e0
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x10051b59
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 0x10051b83
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 0x10051b7c
push 1
mov ecx, dword [ebp - 0x40]
call fcn.10051920
mov dword [ebp - 0x5c], eax
jmp 0x10051b83
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 0x10051bb1
jl 0x10051baf
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x68]
cmp eax, dword [edx + 0x10]
jae 0x10051bb1
jmp 0x10051bc1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add edx, dword [ecx]
mov dword [ebp - 0x34], edx
jmp 0x10051a71
jmp 0x10051c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10051bdc
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.10050200
jmp 0x10051c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x10051c09
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.101426f0
add esp, 0x18
jmp 0x10051c10
jmp 0x10051a18
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.100501e0
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.1014c66b
mov esp, ebp
pop ebp
ret