Function at 0x4ac670
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfb5f
mov eax, dword fs:[0]
push eax
mov eax, 0x1318
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12ec], ecx
mov byte [ebp - 0x101c], 0
push 0xfff
push 0
lea eax, [ebp - 0x101b]
push eax
call fcn.005b5540
add esp, 0xc
mov dword [ebp - 0x10], 0
push str.System
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4aca99
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1040]
push eax
push 0x1000
mov ecx, dword [ebp - 0x1020]
push ecx
push 0
push 9
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
je 0x4aca8f
cmp dword [ebp - 0x1040], 0
jbe 0x4aca52
mov eax, dword [ebp - 0x1020]
mov cx, word [eax + 0x14]
mov word [ebp - 0x1044], cx
movsx edx, word [ebp - 0x1044]
cmp edx, 0x1776
jne 0x4ac88b
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bec0
movzx eax, al
test eax, eax
je 0x4ac88b
mov ecx, dword [ebp - 0x1020]
mov edx, dword [ecx + 0xc]
xor eax, eax
mov dword [ebp - 0x104c], edx
mov dword [ebp - 0x1048], eax
mov ecx, dword [ebp - 0x1048]
push ecx
mov edx, dword [ebp - 0x104c]
push edx
lea eax, [ebp - 0x1240]
push eax
call fcn.00500f00
add esp, 0xc
mov dword [ebp - 0x12f0], eax
mov ecx, dword [ebp - 0x12f0]
mov dword [ebp - 0x12f4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x12f4]
push edx
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bf10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1240]
call fcn.0040bf30
push 1
push 2
lea ecx, [ebp - 0x10cc]
call fcn.0040b040
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040be10
push eax
push 0x6154f4
lea eax, [ebp - 0x10cc]
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea ecx, [ebp - 0x125c]
push ecx
lea ecx, [ebp - 0x10cc]
call fcn.004094f0
mov dword [ebp - 0x12f8], eax
mov edx, dword [ebp - 0x12f8]
mov dword [ebp - 0x12fc], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x12fc]
call fcn.0040be10
push eax
push 0x615500
push 0x4b
push 0x615520
push 7
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x125c]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10cc]
call fcn.00409dd0
movsx eax, word [ebp - 0x1044]
cmp eax, 0x1775
jne 0x4ac9f9
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bec0
movzx ecx, al
test ecx, ecx
je 0x4ac9f9
mov edx, dword [ebp - 0x1020]
mov eax, dword [edx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10d4], eax
mov dword [ebp - 0x10d0], ecx
mov edx, dword [ebp - 0x10d0]
push edx
mov eax, dword [ebp - 0x10d4]
push eax
lea ecx, [ebp - 0x1278]
push ecx
call fcn.00500f00
add esp, 0xc
mov dword [ebp - 0x1300], eax
mov edx, dword [ebp - 0x1300]
mov dword [ebp - 0x1304], edx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x1304]
push eax
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bf10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1278]
call fcn.0040bf30
mov ecx, dword [ebp - 0x12ec]
mov edx, dword [ebp - 0x10d4]
mov dword [ecx + 0xb0], edx
mov eax, dword [ebp - 0x10d0]
mov dword [ecx + 0xb4], eax
push 1
push 2
lea ecx, [ebp - 0x1154]
call fcn.0040b040
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040be10
push eax
push 0x615538
lea ecx, [ebp - 0x1154]
push ecx
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea edx, [ebp - 0x1294]
push edx
lea ecx, [ebp - 0x1154]
call fcn.004094f0
mov dword [ebp - 0x1308], eax
mov eax, dword [ebp - 0x1308]
mov dword [ebp - 0x130c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x130c]
call fcn.0040be10
push eax
push 0x615544
push 0x52
push 0x615564
push 7
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1294]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1154]
call fcn.00409dd0
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bec0
movzx ecx, al
test ecx, ecx
jne 0x4aca25
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bec0
movzx edx, al
test edx, edx
jne 0x4aca25
jmp 0x4aca52
mov eax, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x1040]
sub ecx, dword [eax]
mov dword [ebp - 0x1040], ecx
mov edx, dword [ebp - 0x1020]
mov eax, dword [ebp - 0x1020]
add eax, dword [edx]
mov dword [ebp - 0x1020], eax
jmp 0x4ac71c
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bec0
movzx edx, al
test edx, edx
jne 0x4aca8a
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bec0
movzx eax, al
test eax, eax
jne 0x4aca8a
jmp 0x4aca8f
jmp 0x4ac6ef
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push 0x60a812
lea ecx, [ebp - 0x103c]
call fcn.0040be30
mov dword [ebp - 4], 6
lea edx, [ebp - 0x103c]
push edx
push str.eds_kernel_powertype
call fcn.00404970
mov ecx, eax
call fcn.0040ce30
push 0x615594
lea ecx, [ebp - 0x103c]
call fcn.0040be10
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
jne 0x4acd41
push 0x60a813
lea ecx, [ebp - 0x11a0]
call fcn.0040be30
mov byte [ebp - 4], 7
push 0x60a82e
lea ecx, [ebp - 0x1178]
call fcn.0040be30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x11a0]
push eax
push str.eds_kernel_quickpowerontime
call fcn.00404970
mov ecx, eax
call fcn.0040ce30
lea ecx, [ebp - 0x1178]
push ecx
push str.eds_kernel_quickpowerofftime
call fcn.00404970
mov ecx, eax
call fcn.0040ce30
lea ecx, [ebp - 0x11a0]
call fcn.0040be10
push eax
call fcn.005b17f3
add esp, 4
cdq
mov dword [ebp - 0x1184], eax
mov dword [ebp - 0x1180], edx
lea ecx, [ebp - 0x1178]
call fcn.0040be10
push eax
call fcn.005b17f3
add esp, 4
cdq
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], edx
mov edx, dword [ebp - 0x12ec]
mov eax, dword [ebp - 0x1184]
mov dword [edx + 0xb0], eax
mov ecx, dword [ebp - 0x1180]
mov dword [edx + 0xb4], ecx
mov edx, dword [ebp - 0x1180]
push edx
mov eax, dword [ebp - 0x1184]
push eax
lea ecx, [ebp - 0x12b0]
push ecx
call fcn.00500f00
add esp, 0xc
mov dword [ebp - 0x1310], eax
mov edx, dword [ebp - 0x1310]
mov dword [ebp - 0x1314], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1314]
push eax
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bf10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12b0]
call fcn.0040bf30
mov ecx, dword [ebp - 0x1158]
push ecx
mov edx, dword [ebp - 0x115c]
push edx
lea eax, [ebp - 0x12cc]
push eax
call fcn.00500f00
add esp, 0xc
mov dword [ebp - 0x1318], eax
mov ecx, dword [ebp - 0x1318]
mov dword [ebp - 0x131c], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x131c]
push edx
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bf10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12cc]
call fcn.0040bf30
push 1
push 2
lea ecx, [ebp - 0x1224]
call fcn.0040b040
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040be10
push eax
push 0x6155d4
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040be10
push eax
push 0x6155d8
lea eax, [ebp - 0x1224]
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea ecx, [ebp - 0x12e8]
push ecx
lea ecx, [ebp - 0x1224]
call fcn.004094f0
mov dword [ebp - 0x1320], eax
mov edx, dword [ebp - 0x1320]
mov dword [ebp - 0x1324], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1324]
call fcn.0040be10
push eax
push str.CPowerOnOff::GetPowerOnOffTime
push 0xaa
push 0x615610
push 7
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x12e8]
call fcn.0040bf30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1224]
call fcn.00409dd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1178]
call fcn.0040bf30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x11a0]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x103c]
call fcn.0040bf30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b1988
mov esp, ebp
pop ebp
ret