Function at 0x10008390
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
test byte [0x10065ac4], 1
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x100083d6
or dword [0x10065ac4], 1
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 ebx, ebx
lea eax, [esp + 0xa08]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.100038f0
lea ecx, [esp + 0x1ef8]
push ecx
call fcn.100038f0
push 0x104
push esi
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x1770
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x10008508
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
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, ebx
je 0x100084b8
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 ecx, [esp + 0x44]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
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, 0x57
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10008510
sub eax, edx
sar eax, 1
jne 0x100085bb
push 0x57
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
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000856b
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], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
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, 0x57
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ae8]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
test byte [0x10065ac4], 1
jne 0x100085dd
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push esi
push str.Check_Boot_files__Boot.ini_BCD__on_drive__s
mov eax, 0x10065ac8
call fcn.1001e660
movzx ecx, word [esi]
push ecx
call fcn.10031e80
movzx edx, word [esi]
add esp, 0xc
push edx
mov edi, eax
call fcn.10031f40
add esp, 4
push edi
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0xe4], ebx
call fcn.10028740
test eax, eax
jne 0x10008670
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f660
mov eax, dword [esp + 0x6c]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CSTDisk::Open
push ecx
call fcn.100020c0
add esp, 4
mov ebx, eax
call fcn.1001e430
add esp, 4
lea ecx, [esp + 0x1ef8]
push ecx
call fcn.10005e40
lea edx, [esp + 0xa08]
push edx
jmp 0x10008892
lea ecx, [esp + 0x70]
call fcn.10029870
test eax, eax
jne 0x100086a9
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x48]
call fcn.1002f660
mov edi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
call fcn.10027fb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CSTDisk::Enumerate
jmp 0x10008643
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 0x1000876f
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 0x10008821
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
lea ecx, [esp + 0x10]
jge 0x10008856
call fcn.1000c270
lea ecx, [esp + 0x70]
call fcn.10027fb0
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.10008d50
mov edi, eax
jmp 0x10008876
push 1
push ecx
push esi
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 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 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