Function at 0x40889c
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4021c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401510
xor edi, edi
push 0x40471c
push 0x404734
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edi
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004024c0
push eax
push 0x95
call fcn.0040242a
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004024c0
push eax
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.004024c0
push eax
push 0x404744
call fcn.004024ae
push 8
mov dword [ebp - 0x38], eax
pop ebx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x40], ebx
call fcn.004023e2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00402424
push eax
call fcn.0040248a
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004024c0
lea eax, [ebp - 0x20]
push eax
call fcn.0040ede5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
call fcn.004024a8
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push 3
call fcn.0040244e
add esp, 0x24
push 0x404758
push dword [0x412020]
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004024c0
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
mov edx, 0x40476c
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
push dword [0x41201c]
mov esi, 0x4047b4
push esi
call fcn.004024ae
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebp - 0x30], ebx
call fcn.0040249c
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004024c0
push eax
call fcn.004024ba
xor ebx, ebx
cmp eax, 3
setg bl
lea ecx, [ebp - 0x14]
neg ebx
call fcn.00402496
lea ecx, [ebp - 0x30]
call fcn.00402490
cmp bx, di
je 0x408b6f
push 0x4047d4
push dword [0x41201c]
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004024c0
push eax
push esi
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004024c0
lea eax, [ebp - 0x18]
push eax
call fcn.0040ede5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
call fcn.004024a8
add esp, 0xc
mov edx, 0x4047e4
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
mov edx, 0x40482c
lea ecx, [ebp - 0x1c]
call fcn.004024b4
mov edx, 0x404294
lea ecx, [ebp - 0x18]
call fcn.004024b4
push dword [0x41201c]
push esi
call fcn.004024ae
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004024c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c472
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004024c0
push eax
push 0x40484c
push 1
call fcn.004023dc
mov si, ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
neg si
push eax
lea eax, [ebp - 0x14]
sbb esi, esi
push eax
inc esi
push 4
neg esi
call fcn.004024a8
add esp, 0x14
cmp si, di
je 0x408bfa
mov edx, 0x404870
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
lea eax, [ebp - 0x30]
push eax
call fcn.004023e2
lea eax, [ebp - 0x30]
push eax
call fcn.004023d6
fstp qword [0x412030]
lea ecx, [ebp - 0x30]
call fcn.00402490
mov edx, 0x4048c0
mov ecx, 0x41202c
call fcn.004024b4
wait
push 0x408cb6
jmp 0x408cb5
mov edx, 0x4045f4
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
mov edx, 0x404628
lea ecx, [ebp - 0x18]
call fcn.004024b4
mov edx, 0x404418
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], 0x3e7
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040ab97
xor ebx, ebx
cmp eax, 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
setl bl
push eax
push 2
neg ebx
call fcn.004024a8
add esp, 0xc
cmp bx, di
je 0x408a91
call fcn.00402400
push 0x3a98
call fcn.00403418
call fcn.00402478
jmp 0x408b8d
mov edx, 0x404894
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x14]
push eax
call fcn.0040ede5
lea ecx, [ebp - 0x14]
call fcn.00402496
mov edx, 0x404628
lea ecx, [ebp - 0x18]
call fcn.004024b4
mov edx, 0x404418
lea ecx, [ebp - 0x14]
call fcn.004024b4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], 0x3e7
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040ab97
xor ecx, ecx
cmp eax, 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
setl cl
neg ecx
push eax
push 2
mov esi, ecx
call fcn.004024a8
add esp, 0xc
cmp si, di
je 0x408b35
call fcn.00402400
push 0x3a98
call fcn.00403418
call fcn.00402478
jmp 0x408c18
ret