Function at 0x425b85
Capabilities:
Shutdown system

Disassembly:
mov eax, 0x476eee
call fcn.004680bc
sub esp, 0x1c8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp byte [edi + 0xc], bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
je 0x425f84
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x47e4b8
mov dword [ebp - 0xa8], 0x47e4b0
call fcn.004058e5
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 1
call fcn.00406ce0
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040667f
push str.DISK1TARGET
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x58]
push esi
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405d54
lea eax, [ebp - 0xc8]
push str.setup.ilg
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407793
add esp, 0xc
push 4
push eax
mov byte [ebp - 4], 4
call fcn.0041859e
pop ecx
mov byte [ebp - 0x11], al
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00407421
cmp byte [ebp - 0x11], bl
je 0x425f68
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x47e4b8
mov dword [ebp - 0x60], 0x47e4b0
call fcn.004058e5
lea eax, [ebp - 0x1e]
push 1
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.004058e5
mov esi, 0x800
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.0041f411
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 7
call fcn.00406608
push esi
push eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00405d65
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x80]
push eax
call fcn.00426e79
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00406732
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.00407421
mov esi, dword [ebp - 0x1c]
mov edi, 0x47e4c8
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x425d1e
mov edi, eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x80]
push eax
call fcn.0042027d
push str.__reboot
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 9
push eax
call fcn.0040a3b8
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040a3b8
add esp, 0xc
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00407701
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.00407421
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 9
call fcn.00407421
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.00407421
lea edi, [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00412fca
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
mov byte [eax + 4], 1
call fcn.0040667f
mov ecx, dword [esi + 0x58]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp byte [ebp - 0x24], 0
mov byte [ebp - 4], 6
je 0x425de3
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
call fcn.00405c0c
push edi
lea eax, [ebp - 0x118]
push 0x496bbc
push eax
call fcn.00427752
add esp, 0xc
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xd
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00407701
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.00407421
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0x1d4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1c4], 1
jne 0x425e72
cmp dword [ebp - 0x1d0], 4
ja 0x425e60
jne 0x425e72
cmp dword [ebp - 0x1cc], ebx
jbe 0x425e72
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceExInstallShieldSetup
jmp 0x425e82
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, str.InstallShieldSetup
lea edi, [ebp - 0xa0]
mov esi, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x8d]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop esi
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push edi
push edi
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425ee5
push esi
push ebx
lea eax, [ebp - 0xa0]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
inc esi
jmp 0x425eb1
mov eax, dword [ebp - 0x4c]
add eax, eax
push eax
call fcn.0046826f
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 0x24], esi
setne byte [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
call fcn.00406608
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
lea eax, [ebp - 0xa0]
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [ebp - 0x28], 0
je 0x425f3a
push esi
call fcn.00460118
pop ecx
cmp dword [ebp - 0x18], edi
je 0x425f4b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00407421
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00407421
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00407421
jmp 0x425f84
cmp byte [edi + 0xd], 0
je 0x425fe5
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push ebx
push 2
pop edi
push edi
call esi
test eax, eax
jne 0x425fe5
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x425fe5
lea eax, [ebp - 0x2c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x425fe5
push ebx
push edi
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret