Function at 0x403260
Capabilities:
Shutdown system
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41813d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00402dc0
test eax, eax
je 0x4032de
push str.Installation_cannot_continue_because_uninstalling_failed
push 0x10
push str.Error
push dword [edi]
call fcn.00401500
add esp, 0x10
jmp 0x40384e
push str.Install_started...
push edi
call fcn.00402550
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.004022f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004056d0
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 7
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
je 0x40335d
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push ecx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40334a
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x34], eax
je 0x403352
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403365
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.utl::write_file_returned__08X
push edi
call fcn.00402550
add esp, 0xc
test esi, esi
je 0x4033ee
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.00405cd0
sub esp, 0x18
mov byte [ebp - 4], 2
movups xmm0, xmmword [eax]
mov ecx, esp
push str.Installing_patcher_DLL_failed._Error:__s
push 0x10
movups xmmword [ecx], xmm0
push str.Error
movq xmm0, qword [eax + 0x10]
push dword [edi]
movq qword [ecx + 0x10], xmm0
call fcn.00401500
add esp, 0x28
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x403804
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4037fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403875
jmp 0x4037fa
mov ecx, str.winlogon.exe
call fcn.00402970
mov esi, eax
push esi
push str.InstallForExecutable__winlogon.exe___returned__08X
push edi
call fcn.00402550
add esp, 0xc
test esi, esi
je 0x403484
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.00405cd0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x403423
mov eax, dword [eax]
push eax
push str.Installing_main_hook_failed._Error:__s
push 0x10
push str.Error
push dword [edi]
call fcn.00401500
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x403478
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40346e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40387a
push edx
push ecx
call fcn.004068ce
add esp, 8
mov ecx, edi
call fcn.00402dc0
jmp 0x403804
mov esi, 0x4211f8
nop dword [eax]
mov eax, dword [esi - 4]
push 0
push 0
push 0xf0
push dword [eax + edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x403541
mov ecx, dword [esi]
call fcn.00402970
push eax
push dword [esi]
mov dword [ebp - 0x54], eax
push str.InstallForExecutable___s___returned__08X
push edi
call fcn.00402550
mov edx, dword [ebp - 0x54]
add esp, 0x10
test edx, edx
je 0x403541
lea ecx, [ebp - 0x30]
call fcn.00405cd0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4034e4
mov eax, dword [eax]
push eax
push dword [esi]
push str.Installing_for___s__failed._Error:__s
push 0x30
push str.Warning
push dword [edi]
call fcn.00401500
mov byte [ebp - 4], 1
add esp, 0x18
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40353b
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403531
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403875
push edx
push ecx
call fcn.004068ce
add esp, 8
xor eax, eax
mov word [ebp - 0x30], ax
add esi, 8
lea eax, [esi - 4]
cmp eax, 0x42120c
jne 0x403490
push 0
push 0
push 0xf0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x40371f
mov ecx, str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionThemes_
mov dword [ebp - 0x64], 0
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403590
sub ecx, edx
sar ecx, 1
push ecx
push str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionThemes_
lea ecx, [ebp - 0x74]
call fcn.00405170
mov ecx, str.DefaultColors
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4035c0
sub ecx, edx
sar ecx, 1
push ecx
push str.DefaultColors
lea ecx, [ebp - 0x74]
call fcn.00404eb0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x40363f
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403635
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40387f
push edx
push ecx
call fcn.004068ce
add esp, 8
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
mov edx, str.DefaultColors_backup
cmovae ecx, dword [ebp - 0x30]
call fcn.00405aa0
mov edx, dword [ebp - 0x1c]
mov esi, eax
cmp edx, 8
jb 0x403690
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403686
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403884
push edx
push ecx
call fcn.004068ce
add esp, 8
push esi
xor eax, eax
push str.RenameDefaultColors_returned__08X
push edi
mov word [ebp - 0x30], ax
call fcn.00402550
add esp, 0xc
test esi, esi
je 0x40371f
cmp esi, 3
je 0x40371f
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.00405cd0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4036c4
mov eax, dword [eax]
push eax
push str.Renaming_CurrentColors_failed._If_you_have_the_LogonUI_problem_consider_using_LogonUI_hook._Error:__s
push 0x30
push str.Warning
push dword [edi]
call fcn.00401500
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x403719
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40370f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403889
push edx
push ecx
call fcn.004068ce
add esp, 8
xor eax, eax
mov word [ebp - 0x30], ax
push str.Installing_succeeded__patcher_will_be_loaded_next_boot._Do_you_want_to_reboot_now_
push 4
push str.Success
push dword [edi]
call fcn.00401500
add esp, 0x10
cmp eax, 6
jne 0x403804
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 0
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov esi, eax
push esi
push str.RtlAdjustPrivilege_returned__08X
push edi
call fcn.00402550
add esp, 0xc
test esi, esi
jns 0x4037a3
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00405cd0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x403787
mov eax, dword [eax]
push eax
push str.Adjusting_shutdown_privilege_failed._Error:__s
push 0x10
push str.Error
push dword [edi]
call fcn.00401500
add esp, 0x14
jmp 0x4033b1
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403804
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ExitWindowsEx_failed_with_GetLastError_____08X
push edi
call fcn.00402550
add esp, 0xc
lea ecx, [ebp - 0x30]
mov edx, esi
call fcn.00405cd0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x4037de
mov eax, dword [eax]
push eax
push str.Rebooting_failed._Error:__s
push 0x10
push str.Error
push dword [edi]
call fcn.00401500
add esp, 0x14
jmp 0x4033b1
push edx
push ecx
call fcn.004068ce
add esp, 8
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x40383a
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403830
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403875
push edx
push ecx
call fcn.004068ce
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
int3