Function at 0x100155a0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x24e4
call fcn.1003dcd0
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x24e0], eax
test byte [0x10065ac4], 1
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x100155e6
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
lea ecx, [esp + 0x60]
mov dword [0x10065f08], 0x3f
call fcn.10028af0
lea ecx, [esp + 0x34]
call fcn.1002f490
lea eax, [esp + 0x18f0]
push eax
call fcn.100038f0
lea ecx, [esp + 0xcf8]
push ecx
call fcn.100038f0
lea edx, [esp + 0x100]
push edx
call fcn.100038f0
xor ebx, ebx
push 0x104
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x1770
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x100156ee
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001568f
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push ecx
push eax
call fcn.1000ad60
mov edx, dword [esp + 0x1c]
push edx
call fcn.1003c1aa
add esp, 0xc
lea eax, [esp + 0x100]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.10005e40
lea ecx, [esp + 0xcf8]
push ecx
call fcn.10005e40
lea edx, [esp + 0x18f0]
push edx
call fcn.10005e40
lea ecx, [esp + 0x34]
call fcn.1002f500
lea ecx, [esp + 0x60]
call fcn.100286b0
mov eax, 0x57
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24e0]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100156f3
sub eax, edx
sar eax, 1
je 0x10015663
test byte [0x10065ac4], 1
jne 0x1001572a
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push esi
push str.Repair_Boot_files__Boot.ini_BCD__on_drive__s
mov eax, 0x10065ac8
call fcn.1001e660
movzx eax, word [esi]
push eax
call fcn.10031e80
movzx ecx, word [esi]
add esp, 0xc
push ecx
mov edi, eax
call fcn.10031f40
add esp, 4
push edi
lea ecx, [esp + 0x64]
mov ebx, eax
mov dword [esp + 0xd4], 0
call fcn.10028740
test eax, eax
jne 0x10015803
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0x38]
call fcn.1002f660
mov eax, dword [esp + 0x5c]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push str.CSTDisk::Open__u_.
call fcn.100020c0
mov ebx, eax
call fcn.1001e430
add esp, 8
lea esi, [esp + 0x10]
call fcn.1000a630
lea eax, [esp + 0x100]
push eax
call fcn.10005e40
lea ecx, [esp + 0xcf8]
push ecx
call fcn.10005e40
lea edx, [esp + 0x18f0]
push edx
call fcn.10005e40
lea ecx, [esp + 0x34]
call fcn.1002f500
lea ecx, [esp + 0x60]
call fcn.100286b0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24e0]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x60]
call fcn.10029870
test eax, eax
jne 0x10015852
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x38]
call fcn.1002f660
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CSTDisk::Enumerate__.
push ecx
call fcn.100020c0
add esp, 4
mov ebx, eax
call fcn.1001e430
add esp, 4
jmp 0x10015aa4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.1000c020
lea eax, [esp + 0x18f8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.1000c590
add esp, 0x10
test eax, eax
jne 0x1001590d
lea ecx, [esp + 0x10]
call fcn.1000c270
lea ecx, [esp + 0x60]
call fcn.10027fb0
push 0x801e0007
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.No_windows_partition.
push ecx
call fcn.100020c0
add esp, 4
call fcn.1001e660
add esp, 4
lea esi, [esp + 0x10]
call fcn.1000a630
lea edx, [esp + 0x100]
push edx
call fcn.10005e40
lea eax, [esp + 0xcf8]
push eax
call fcn.10005e40
lea ecx, [esp + 0x18f0]
push ecx
call fcn.10005e40
lea ecx, [esp + 0x34]
call fcn.1002f500
lea ecx, [esp + 0x60]
call fcn.100286b0
mov eax, 0x801e0007
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24e0]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
lea edx, [esp + 0x24d8]
call fcn.1000db90
test eax, eax
jge 0x10015991
push str.For_versions_lower_than_Vista:_repair_boot.ini.
push ecx
call fcn.100020c0
add esp, 4
call fcn.1001e660
add esp, 4
push esi
lea edx, [esp + 0x64]
push ebx
push edx
call fcn.10017c80
add esp, 0xc
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1000c270
lea ecx, [esp + 0x60]
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [esp + 0x10]
call fcn.1000a630
lea eax, [esp + 0x100]
push eax
call fcn.10005e40
lea ecx, [esp + 0xcf8]
push ecx
call fcn.10005e40
lea edx, [esp + 0x18f0]
push edx
jmp 0x10015acf
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x14]
call fcn.1000c4b0
add esp, 4
test eax, eax
jne 0x10015a3c
lea ecx, [esp + 0x10]
call fcn.1000c270
lea ecx, [esp + 0x60]
call fcn.10027fb0
push 0x801e0006
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.No_active_partition.
push ecx
call fcn.100020c0
add esp, 4
call fcn.1001e660
add esp, 4
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x100]
push ecx
call fcn.10005e40
lea edx, [esp + 0xcf8]
push edx
call fcn.10005e40
lea eax, [esp + 0x18f0]
push eax
call fcn.10005e40
lea ecx, [esp + 0x34]
call fcn.1002f500
lea ecx, [esp + 0x60]
call fcn.100286b0
mov eax, 0x801e0006
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24e0]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xcf8]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000c8f0
add esp, 4
test eax, eax
jne 0x10015a5f
mov dword [esp + 0xf04], 0xffffffff
push 1
push 1
lea edx, [esp + 0x18f8]
push edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0xd08]
lea edx, [esp + 0x110]
call fcn.100184f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1000c270
lea ecx, [esp + 0x60]
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x100]
push ecx
call fcn.10005e40
lea edx, [esp + 0xcf8]
push edx
call fcn.10005e40
lea eax, [esp + 0x18f0]
push eax
call fcn.10005e40
lea ecx, [esp + 0x34]
call fcn.1002f500
lea ecx, [esp + 0x60]
call fcn.100286b0
mov ecx, dword [esp + 0x24ec]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret