Function at 0x10007880
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2aec
call fcn.1003dcd0
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x2ae8], eax
push ebx
mov ebx, 1
test byte [0x10065ac4], bl
push esi
push edi
jne 0x100078c6
or dword [0x10065ac4], ebx
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
lea ecx, [esp + 0x70]
mov dword [0x10065f08], 0x3f
call fcn.10028af0
lea ecx, [esp + 0x110]
call fcn.1002a010
lea ecx, [esp + 0x1600]
call fcn.1002a010
lea ecx, [esp + 0x44]
call fcn.1002f490
xor esi, esi
lea eax, [esp + 0xa08]
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.100038f0
lea ecx, [esp + 0x1ef8]
push ecx
call fcn.100038f0
test byte [0x10065ac4], bl
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x1770
mov dword [esp + 0x40], esi
jne 0x1000796e
or dword [0x10065ac4], ebx
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
mov edi, dword [ebp + 8]
push edi
push str.Check_Boot_files__Boot.ini_BCD__on_disk__u
mov eax, 0x10065ac8
call fcn.1001e660
add esp, 8
push edi
lea ecx, [esp + 0x74]
mov dword [esp + 0xe4], esi
call fcn.10028740
test eax, eax
jne 0x10007a7c
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0x48]
call fcn.1002f660
mov eax, dword [esp + 0x6c]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x10065ac4], bl
jne 0x100079dd
or dword [0x10065ac4], ebx
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push str.CSTDisk::Open
mov ebx, 0x10065ac8
call fcn.1001e430
add esp, 4
lea eax, [esp + 0x1ef8]
push eax
call fcn.10005e40
lea ecx, [esp + 0xa08]
push ecx
call fcn.10005e40
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10007a2d
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push edx
push eax
call fcn.1000ad60
mov eax, dword [esp + 0x1c]
push eax
call fcn.1003c1aa
add esp, 0xc
lea ecx, [esp + 0x44]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.1002f500
lea ecx, [esp + 0x1600]
call fcn.1002a110
lea ecx, [esp + 0x110]
call fcn.1002a110
lea ecx, [esp + 0x70]
call fcn.100286b0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x70]
call fcn.10029870
test eax, eax
jne 0x10007b3b
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0x48]
call fcn.1002f660
mov edi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], edi
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x10065ac4], bl
jne 0x10007ad6
or dword [0x10065ac4], ebx
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push str.CSTDisk::Enumerate
mov ebx, 0x10065ac8
call fcn.1001e430
add esp, 4
lea edx, [esp + 0x1ef8]
push edx
call fcn.10005e40
lea eax, [esp + 0xa08]
push eax
call fcn.10005e40
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10007b2a
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
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jmp 0x10007e10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.1000c020
lea edx, [esp + 0xa10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.1000c590
add esp, 0x10
test eax, eax
jne 0x10007c01
lea ecx, [esp + 0x10]
call fcn.1000c270
lea ecx, [esp + 0x70]
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 ecx, [esp + 0x1ef8]
push ecx
call fcn.10005e40
lea edx, [esp + 0xa08]
push edx
call fcn.10005e40
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x44]
call fcn.1002f500
lea ecx, [esp + 0x1600]
call fcn.1002a110
lea ecx, [esp + 0x110]
call fcn.1002a110
lea ecx, [esp + 0x70]
call fcn.100286b0
mov eax, 0x801e0007
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
lea edx, [esp + 0x15f0]
call fcn.1000db90
test eax, eax
jge 0x10007cb3
lea ecx, [esp + 0x10]
call fcn.1000c270
lea ecx, [esp + 0x70]
call fcn.10027fb0
push 0x801e0008
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Windows_98__ME__NT4_not_supported.
push ecx
call fcn.100020c0
add esp, 4
call fcn.1001e660
add esp, 4
lea eax, [esp + 0x1ef8]
push eax
call fcn.10005e40
lea ecx, [esp + 0xa08]
push ecx
call fcn.10005e40
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x44]
call fcn.1002f500
lea ecx, [esp + 0x1600]
call fcn.1002a110
lea ecx, [esp + 0x110]
call fcn.1002a110
lea ecx, [esp + 0x70]
call fcn.100286b0
mov eax, 0x801e0008
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x34]
lea edx, [esp + 0x15f0]
call fcn.1000db90
test eax, eax
jge 0x10007d0a
lea ecx, [esp + 0x10]
call fcn.1000c270
lea ecx, [esp + 0x70]
call fcn.10027fb0
mov ecx, dword [esp + 0x15ac]
mov edx, edi
call fcn.10008d50
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [esp + 0x1ef8]
push edx
call fcn.10005e40
lea eax, [esp + 0xa08]
push eax
jmp 0x10007e02
lea ecx, [esp + 0x1ef8]
push ecx
lea eax, [esp + 0x14]
call fcn.1000c4b0
add esp, 4
test eax, eax
lea ecx, [esp + 0x10]
jne 0x10007dc0
call fcn.1000c270
lea ecx, [esp + 0x70]
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 edx, [esp + 0x1ef8]
push edx
call fcn.10005e40
lea eax, [esp + 0xa08]
push eax
call fcn.10005e40
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x44]
call fcn.1002f500
lea ecx, [esp + 0x1600]
call fcn.1002a110
lea ecx, [esp + 0x110]
call fcn.1002a110
lea ecx, [esp + 0x70]
call fcn.100286b0
mov eax, 0x801e0006
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
push ebx
push ecx
lea edx, [esp + 0x1f04]
push edx
call fcn.10008de0
add esp, 0xc
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1000c270
lea ecx, [esp + 0x70]
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x1ef8]
push eax
call fcn.10005e40
lea ecx, [esp + 0xa08]
push ecx
call fcn.10005e40
lea esi, [esp + 0x10]
call fcn.1000a630
lea ecx, [esp + 0x44]
call fcn.1002f500
lea ecx, [esp + 0x1600]
call fcn.1002a110
lea ecx, [esp + 0x110]
call fcn.1002a110
lea ecx, [esp + 0x70]
call fcn.100286b0
mov ecx, dword [esp + 0x2af4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret