Function at 0x416c0e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov al, byte [0x4c4003]
or byte [0x4c4003], 0x80
mov byte [ebp - 1], al
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
setne al
mov dword [ebp + 8], eax
mov eax, ebx
and al, 0x70
neg al
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov eax, ebx
and al, 0x72
neg al
sbb eax, eax
neg eax
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], eax
je 0x416c5b
mov byte [ebp + 0xf], 1
jmp 0x416c65
mov eax, ebx
shr eax, 5
and al, 2
mov byte [ebp + 0xf], al
mov edi, ebx
shr edi, 0xe
and edi, 1
call fcn.0043aaf4
mov dword [ebp - 0x10], eax
shrd eax, edx, 0x10
push 0x4a9e00
mov dword [ebp - 0x10], eax
shr edx, 0x10
call fcn.00410458
pop ecx
xor ecx, ecx
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x416c9c
mov eax, ebx
not eax
inc ecx
and eax, ecx
jmp 0x416ca0
xor eax, eax
inc eax
inc ecx
cmp eax, esi
je 0x416cb5
cmp dword [ebp - 0x1c], esi
je 0x416cb5
cmp dword [ebp - 0x10], 0x60002
mov dword [ebp - 0xc], ecx
jae 0x416cb8
mov dword [ebp - 0xc], esi
cmp edi, esi
jne 0x416cc6
cmp dword [ebp - 0x14], esi
je 0x416cc6
mov dword [ebp - 0x10], ecx
jmp 0x416ccd
cmp edi, esi
mov dword [ebp - 0x10], esi
jne 0x416cd5
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x14], ecx
jne 0x416cd8
mov dword [ebp - 0x14], esi
push 0x12c
lea ecx, [ebp - 8]
call fcn.0043dc74
movzx eax, byte [ebp + 0xf]
push eax
push dword [ebp - 0x1c]
movzx eax, byte [ebp - 1]
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push 0x4a9dc0
push dword [ebp - 8]
call dword [sym.imp.USER32.DLL_wsprintfA]
push dword [ebp - 8]
call fcn.0040e7b4
add esp, 0x38
lea ecx, [ebp - 8]
call fcn.00437e1a
push 0xf
pop ecx
xor eax, eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 0xf0
push eax
lea ecx, [ebp - 0x20]
call fcn.0043dd9c
movzx eax, word [ebp - 0x38]
push eax
push dword [ebp + 8]
push ebx
push dword [ebp + 0x10]
push 0x4a9d60
push dword [ebp - 0x20]
call dword [sym.imp.USER32.DLL_wsprintfW]
push ebx
push dword [ebp - 0x20]
call fcn.00410341
push esi
push 2
push 0x4a75d8
call fcn.004119f4
push esi
push 2
push 0x4a9d28
call fcn.004119f4
add esp, 0x38
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
je 0x416dd2
push dword [ebp + 8]
push 1
push esi
push 0x4a69d4
push esi
call dword [sym.imp.ADVAPI32.DLL_InitiateSystemShutdownW]
push esi
push esi
push 0x2710
mov ecx, 0x4c0fb8
call fcn.00413b53
push 0x4a9d1c
call fcn.0040e7b4
pop ecx
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.USER32.DLL_SendMessageTimeoutW]
mov ebx, 0xffff
je 0x416df2
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push esi
push 1
push 0x16
push ebx
call edi
cmp dword [ebp - 0x14], esi
je 0x416e15
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push esi
push esi
push 0x10
push ebx
call edi
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push esi
push esi
push 2
push ebx
call edi
cmp dword [ebp - 0x1c], esi
je 0x416e49
push 0x4a8ab0
push 0x4a8aa4
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor ecx, ecx
inc ecx
cmp eax, esi
je 0x416e47
xor ecx, ecx
cmp byte [ebp + 0xf], 1
setne cl
inc ecx
push ecx
call eax
mov ecx, eax
mov esi, ecx
lea ecx, [ebp - 0x20]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret