Function at 0x42f5f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c71a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
mov eax, dword [0x4fb770]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4f8], ecx
mov byte [ebp - 0x11], 0
call fcn.004ba5ee
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x42c]
call dword [edx + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x42f667
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x4f8]
mov eax, dword [edx + 0x2164]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x430]
jge 0x42f8e8
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x42f6eb
mov eax, dword [ebp - 0x4f8]
add eax, 0x215c
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x18], 0
jl 0x42f6cc
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 8]
jge 0x42f6cc
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x30
mov ecx, dword [ebp - 0x438]
add eax, dword [ecx + 4]
mov dword [ebp - 0x434], eax
jmp 0x42f6d1
call fcn.004b353e
mov edx, dword [ebp - 0x434]
movzx eax, byte [edx + 0x2c]
test eax, eax
jne 0x42f6eb
mov dword [ebp - 0x4fc], 0
jmp 0x42f6f5
mov dword [ebp - 0x4fc], 1
mov cl, byte [ebp - 0x4fc]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x4f8]
add edx, 0x215c
mov dword [ebp - 0x440], edx
cmp dword [ebp - 0x18], 0
jl 0x42f73b
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 8]
jge 0x42f73b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x440]
add edx, dword [eax + 4]
mov dword [ebp - 0x43c], edx
jmp 0x42f740
call fcn.004b353e
mov ecx, dword [ebp - 0x43c]
movzx edx, byte [ecx + 0x2c]
test edx, edx
je 0x42f8e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x444], ecx
cmp dword [ebp - 0x444], 0
je 0x42f7a3
mov edx, 0x4d316c
test edx, edx
jne 0x42f77c
mov dword [ebp - 0x448], 0
jmp 0x42f78f
push 0x4d316c
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
push eax
push 0x4d316c
lea ecx, [ebp - 0x10]
call fcn.00401ba0
mov ecx, dword [ebp - 0x4f8]
add ecx, 0x215c
mov dword [ebp - 0x450], ecx
cmp dword [ebp - 0x18], 0
jl 0x42f7e0
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 8]
jge 0x42f7e0
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x450]
add ecx, dword [edx + 4]
mov dword [ebp - 0x44c], ecx
jmp 0x42f7e5
call fcn.004b353e
push 0x4cfe18
mov eax, dword [ebp - 0x44c]
add eax, 8
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x500], eax
mov edx, dword [ebp - 0x500]
mov dword [ebp - 0x45c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x420]
call fcn.0044f730
mov ecx, dword [ebp - 0x4f8]
add ecx, 0x215c
mov dword [ebp - 0x468], ecx
cmp dword [ebp - 0x18], 0
jl 0x42f89a
mov edx, dword [ebp - 0x468]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 8]
jge 0x42f89a
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x468]
add ecx, dword [edx + 4]
mov dword [ebp - 0x464], ecx
jmp 0x42f89f
call fcn.004b353e
mov eax, dword [ebp - 0x464]
add eax, 0x28
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x474]
mov edx, dword [ecx]
mov dword [ebp - 0x470], edx
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401ba0
jmp 0x42f65e
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x42f911
mov byte [ebp - 0x421], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f730
mov al, byte [ebp - 0x421]
jmp 0x42fbdb
mov byte [ebp - 0x12], 0
mov eax, dword [ebp - 0x4f8]
movzx ecx, byte [eax + 0x248]
test ecx, ecx
je 0x42f9b2
push 0
lea ecx, [ebp - 0x3c4]
call fcn.0045c0b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x3c4]
call fcn.0045c880
mov eax, dword [ebp - 0x4f8]
movzx ecx, byte [eax + 0x248]
push ecx
lea ecx, [ebp - 0x3c4]
call fcn.0045c8f0
lea ecx, [ebp - 0x3c4]
call fcn.004b5f8d
cmp eax, 1
je 0x42f9a3
mov byte [ebp - 0x422], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c4]
call fcn.0045c240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f730
mov al, byte [ebp - 0x422]
jmp 0x42fbdb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c4]
call fcn.0045c240
mov edx, dword [ebp - 0x4f8]
mov al, byte [edx + 0x248]
mov byte [ebp - 0x504], al
cmp byte [ebp - 0x504], 1
je 0x42f9e8
cmp byte [ebp - 0x504], 2
je 0x42fa07
cmp byte [ebp - 0x504], 3
je 0x42fa69
jmp 0x42fbbd
push 0
push 0
push 0
mov ecx, dword [ebp - 0x4f8]
call fcn.0042fc00
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x12], al
jmp 0x42fbbd
lea ecx, [ebp - 0x414]
push ecx
call sub.POWRPROF.dll_GetPwrCapabilities
movzx edx, al
test edx, edx
je 0x42fa4a
movzx eax, byte [ebp - 0x40c]
test eax, eax
jne 0x42fa4a
push 0x10
push 0x4d315c
call dword [sym.imp.laRTLu.dll__LaGetStr_4]
push eax
push 0x4d30d0
call dword [sym.imp.laRTLu.dll__LaGetStr_4]
push eax
mov ecx, dword [ebp - 0x4f8]
call fcn.004b70a8
push 0
push 0
push 1
mov ecx, dword [ebp - 0x4f8]
call fcn.0042fc00
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x12], al
jmp 0x42fbbd
call fcn.004ba5ee
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x484]
call dword [edx + 0xc]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x480]
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 3
call fcn.004ba5ee
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x48c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48c]
call dword [edx + 0xc]
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x488]
add eax, 0x10
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 4
push 0x400
push 0x400
lea ecx, [ebp - 0x418]
call fcn.0041beb0
push eax
push 0x73
call fcn.004ba991
push 0xffffffffffffffff
lea ecx, [ebp - 0x418]
call fcn.0041bf10
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.laRTLu.dll__LaGetStr_4]
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
jne 0x42fb25
mov dword [ebp - 0x4a0], 0
jmp 0x42fb3a
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x4a0]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.004023c0
mov edx, dword [ebp - 0x4f8]
mov eax, dword [edx + 0x2170]
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4a8]
push ecx
push 0x4d30b8
lea ecx, [ebp - 0x41c]
call fcn.00431560
push 0
push 1
push 5
lea ecx, [ebp - 0x41c]
call fcn.004319c0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x12], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x418]
call fcn.0044f730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x41c]
call fcn.0044f730
mov dl, byte [ebp - 0x12]
mov byte [ebp - 0x423], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f730
mov al, byte [ebp - 0x423]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0049d184
mov esp, ebp
pop ebp
ret