Function at 0x4ac880
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5deaaf
mov eax, dword fs:[0]
push eax
mov eax, 0x1318
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
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.005b4520
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 0x4acca9
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 0x4acc9f
cmp dword [ebp - 0x1040], 0
jbe 0x4acc62
mov eax, dword [ebp - 0x1020]
mov cx, word [eax + 0x14]
mov word [ebp - 0x1044], cx
movsx edx, word [ebp - 0x1044]
cmp edx, 0x1776
jne 0x4aca9b
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bfe0
movzx eax, al
test eax, eax
je 0x4aca9b
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.004ffee0
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.0040c030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1240]
call fcn.0040c050
push 1
push 2
lea ecx, [ebp - 0x10cc]
call fcn.0040b160
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bf30
push eax
push 0x614394
lea eax, [ebp - 0x10cc]
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [ebp - 0x125c]
push ecx
lea ecx, [ebp - 0x10cc]
call fcn.00409610
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.0040bf30
push eax
push 0x6143a0
push 0x4b
push 0x6143c0
push 7
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x125c]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10cc]
call fcn.00409ef0
movsx eax, word [ebp - 0x1044]
cmp eax, 0x1775
jne 0x4acc09
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bfe0
movzx ecx, al
test ecx, ecx
je 0x4acc09
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.004ffee0
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.0040c030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1278]
call fcn.0040c050
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.0040b160
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bf30
push eax
push 0x6143d8
lea ecx, [ebp - 0x1154]
push ecx
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea edx, [ebp - 0x1294]
push edx
lea ecx, [ebp - 0x1154]
call fcn.00409610
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.0040bf30
push eax
push 0x6143e4
push 0x52
push 0x614404
push 7
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1294]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1154]
call fcn.00409ef0
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bfe0
movzx ecx, al
test ecx, ecx
jne 0x4acc35
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bfe0
movzx edx, al
test edx, edx
jne 0x4acc35
jmp 0x4acc62
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 0x4ac92c
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bfe0
movzx edx, al
test edx, edx
jne 0x4acc9a
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bfe0
movzx eax, al
test eax, eax
jne 0x4acc9a
jmp 0x4acc9f
jmp 0x4ac8ff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push 0x6097ea
lea ecx, [ebp - 0x103c]
call fcn.0040bf50
mov dword [ebp - 4], 6
lea edx, [ebp - 0x103c]
push edx
push str.eds_kernel_powertype
call fcn.00404950
mov ecx, eax
call fcn.0040cf60
push 0x614434
lea ecx, [ebp - 0x103c]
call fcn.0040bf30
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
jne 0x4acf51
push 0x6097eb
lea ecx, [ebp - 0x11a0]
call fcn.0040bf50
mov byte [ebp - 4], 7
push 0x6097fd
lea ecx, [ebp - 0x1178]
call fcn.0040bf50
mov byte [ebp - 4], 8
lea eax, [ebp - 0x11a0]
push eax
push str.eds_kernel_quickpowerontime
call fcn.00404950
mov ecx, eax
call fcn.0040cf60
lea ecx, [ebp - 0x1178]
push ecx
push str.eds_kernel_quickpowerofftime
call fcn.00404950
mov ecx, eax
call fcn.0040cf60
lea ecx, [ebp - 0x11a0]
call fcn.0040bf30
push eax
call fcn.005b07d3
add esp, 4
cdq
mov dword [ebp - 0x1184], eax
mov dword [ebp - 0x1180], edx
lea ecx, [ebp - 0x1178]
call fcn.0040bf30
push eax
call fcn.005b07d3
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.004ffee0
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.0040c030
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12b0]
call fcn.0040c050
mov ecx, dword [ebp - 0x1158]
push ecx
mov edx, dword [ebp - 0x115c]
push edx
lea eax, [ebp - 0x12cc]
push eax
call fcn.004ffee0
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.0040c030
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12cc]
call fcn.0040c050
push 1
push 2
lea ecx, [ebp - 0x1224]
call fcn.0040b160
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x58
call fcn.0040bf30
push eax
push 0x614474
mov ecx, dword [ebp - 0x12ec]
add ecx, 0x3c
call fcn.0040bf30
push eax
push 0x614478
lea eax, [ebp - 0x1224]
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [ebp - 0x12e8]
push ecx
lea ecx, [ebp - 0x1224]
call fcn.00409610
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.0040bf30
push eax
push str.CPowerOnOff::GetPowerOnOffTime
push 0xaa
push 0x6144b0
push 7
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x12e8]
call fcn.0040c050
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1224]
call fcn.00409ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1178]
call fcn.0040c050
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x11a0]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x103c]
call fcn.0040c050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret