Function at 0x426260
Capabilities:
Manipulate boot configuration
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ec68
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str._boot.ini
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040c1a0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x426461
push 0x98
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x108]
call fcn.00408c30
mov edx, str.SetFileAttributes_Error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.0040b820
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0040be40
push 0x16
push str.CXpRestore::BootModify
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x120], 0
call fcn.0040f450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
push 0xd
push str.XpRestore.cpp
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.0040f450
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x108]
call fcn.00408b50
push eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 4
push eax
push 0x49
lea eax, [ebp - 0x138]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x13c]
cmp eax, 8
jb 0x4263be
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x13c], 7
mov word [ebp - 0x150], ax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
cmp eax, 0x10
jb 0x4263f9
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.0040f330
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
cmp eax, 0x10
jb 0x426432
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.0040f330
lea ecx, [ebp - 0xb8]
call fcn.00408b70
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.0042f0f8
add esp, 4
xor bl, bl
jmp 0x42692f
push str._boot.in_
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.0040c1a0
add esp, 4
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00415a90
test al, al
jne 0x426625
push 0x98
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x108]
call fcn.00408c30
mov edx, str.CopyFileOrDir_Error:
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x108]
call fcn.0040b820
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.0040be40
push 0x16
push str.CXpRestore::BootModify
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x120], 0
call fcn.0040f450
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x138]
push 0xd
push str.XpRestore.cpp
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.0040f450
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x108]
call fcn.00408b50
push eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 0xa
push eax
push 0x50
lea eax, [ebp - 0x138]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x13c]
cmp eax, 8
jb 0x426582
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x13c], 7
mov word [ebp - 0x150], ax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
cmp eax, 0x10
jb 0x4265bd
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.0040f330
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
cmp eax, 0x10
jb 0x4265f6
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.0040f330
lea ecx, [ebp - 0xb8]
call fcn.00408b70
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.0042f0f8
add esp, 4
xor bl, bl
jmp 0x426906
push str._scldr
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0040c1a0
add esp, 4
push str.9e_King
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00408ac0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push str.default
push str.boot_loader
call esi
test eax, eax
jne 0x42679d
push 0x98
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x108]
call fcn.00408c30
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x108]
mov edx, str.WritePrivateProfileString_Error:
cmovae esi, dword [ebp - 0x28]
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040b820
push str.CXpRestore::BootModify
lea ecx, [ebp - 0x150]
call fcn.0040f550
push str.XpRestore.cpp
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xf
call fcn.0040f550
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x108]
call fcn.00408b50
push eax
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0x11
push eax
push 0x59
lea eax, [ebp - 0x120]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x138]
call fcn.0040f680
mov eax, dword [ebp - 0x10c]
cmp eax, 0x10
jb 0x426750
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.0040f330
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x120], 0
cmp eax, 0x10
jb 0x426789
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.0040f330
lea ecx, [ebp - 0xb8]
call fcn.00408b70
mov byte [ebp - 4], 0x12
jmp 0x426895
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push edx
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push str.operating_systems
call esi
test eax, eax
jne 0x4268b2
push 0x98
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x108]
call fcn.00408c30
mov edx, str.WritePrivateProfileString_Error:
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x108]
call fcn.0040b820
push str.CXpRestore::BootModify
lea ecx, [ebp - 0x120]
call fcn.0040f550
push str.XpRestore.cpp
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x14
call fcn.0040f550
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x108]
call fcn.00408b50
push eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 0x16
push eax
push 0x60
lea eax, [ebp - 0x150]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x138]
call fcn.0040f680
lea ecx, [ebp - 0x150]
call fcn.0040ef30
lea ecx, [ebp - 0x120]
call fcn.0040ef30
lea ecx, [ebp - 0xb8]
call fcn.00408b70
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], vtable.std::ios_base.0
push eax
call fcn.0042f0f8
add esp, 4
xor bl, bl
jmp 0x4268b4
mov bl, 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4268c9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4268f2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x42691b
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x426944
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040f5b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret