Function at 0x405541
Capabilities:
Manipulate boot configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
shl eax, 2
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
call fcn.00450c60
add esp, 0xc
lea eax, [ebp - 3]
push eax
call fcn.00405b72
test eax, eax
jge 0x40558e
mov byte [ebp - 3], 0xff
cmp byte [0x495e1c], 0
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jbe 0x4058ce
movzx eax, byte [ebp - 2]
add eax, dword [0x495e0c]
mov ecx, dword [0x48e238]
mov eax, dword [ecx + eax*4]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], esi
call fcn.00405d93
test eax, eax
jl 0x4058bc
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0x18
cmp ebx, esi
je 0x405678
mov edi, dword [ebx + 8]
add edi, 0x10
lea eax, [edi + 0x18]
push eax
call fcn.0042a046
mov esi, eax
test esi, esi
jne 0x40560f
mov edi, 0xc0000017
jmp 0x405646
lea eax, [edi + 0x18]
push eax
push 0
push esi
call fcn.00450c60
lea eax, [esi + 0x18]
mov ecx, eax
add esp, 0xc
sub ecx, esi
mov dword [esi], 0x11000001
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
push dword [ebx + 8]
add eax, 0x10
push ebx
push eax
call fcn.00450cc0
add esp, 0xc
mov dword [ebp - 0xc], esi
xor edi, edi
test edi, edi
jl 0x4058e0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041edf2
push eax
push 0x18
call fcn.00402311
mov edi, eax
test edi, edi
jl 0x4058e0
push ebx
call fcn.0042a097
and dword [ebp - 0x28], 0
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x4056c2
lea eax, [ebp - 8]
push eax
push 0x12000002
push dword [ebp - 0x18]
call fcn.00405f83
mov edi, eax
cmp edi, esi
jl 0x4058e0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.0041edf2
push eax
push dword [ebp - 0x14]
call fcn.00402311
mov edi, eax
cmp edi, esi
jl 0x4058e0
push dword [ebp - 0x18]
call fcn.0042a097
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x1c], esi
je 0x40570c
lea eax, [ebp - 0x10]
push eax
push 0x12000004
push dword [ebp - 0x1c]
call fcn.00405f83
mov edi, eax
cmp edi, esi
jl 0x4058e0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041edf2
push eax
push dword [ebp - 0x14]
call fcn.00402311
mov edi, eax
cmp edi, esi
jl 0x4058e0
push dword [ebp - 0x1c]
call fcn.0042a097
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], esi
je 0x405759
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call fcn.0040597b
mov edi, eax
cmp edi, esi
jl 0x4058e0
cmp dword [ebp - 0x24], esi
je 0x40574e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call fcn.0041ee19
push eax
push dword [ebp - 0x14]
call fcn.00402311
mov edi, eax
cmp edi, esi
jl 0x4058e0
push dword [ebp - 0x20]
call fcn.0042a097
mov dword [ebp - 0x20], esi
push dword [ebp - 0x14]
call fcn.0042a046
mov ebx, eax
test ebx, ebx
je 0x4058db
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 1]
or eax, 0x80000000
mov dword [ebx], eax
lea edi, [ebx + 4]
mov esi, 0x467e98
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x18]
mov byte [ebx + 0x13], cl
mov dword [ebx + 0x14], eax
cmp cl, byte [ebp - 3]
jne 0x4057ba
cmp byte [ebp - 4], 0
je 0x4057ba
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4057ba
mov eax, dword [ecx + 4]
add eax, ecx
push str._LDR_
push eax
call fcn.0044454f
pop ecx
pop ecx
test eax, eax
je 0x4057ba
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor edi, edi
lea esi, [ebx + 0x18]
cmp dword [ebp - 0x24], edi
je 0x4057f3
push dword [ebp - 0x24]
call fcn.0041ee19
push eax
push dword [ebp - 0x24]
lea edi, [ebx + 0x18]
push edi
call fcn.00450cc0
add esp, 0xc
xor eax, eax
lea esi, [eax + edi]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4057de
mov eax, esi
mov edi, esi
call fcn.0041edf2
add esi, eax
cmp dword [ebp - 0xc], 0
je 0x405830
test edi, edi
je 0x405807
mov ecx, esi
lea eax, [ebx + 0x18]
sub ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebp - 0xc]
call fcn.0041edf2
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
push esi
call fcn.00450cc0
add esp, 0xc
push dword [ebp - 0xc]
call fcn.0042a097
and dword [ebp - 0xc], 0
mov edi, esi
add esi, dword [ebp - 0x24]
cmp dword [ebp - 8], 0
je 0x40586d
test edi, edi
je 0x405844
mov ecx, esi
lea eax, [ebx + 0x18]
sub ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebp - 8]
call fcn.0041edf2
push eax
push dword [ebp - 8]
mov dword [ebp - 0x24], eax
push esi
call fcn.00450cc0
add esp, 0xc
push dword [ebp - 8]
call fcn.0042a097
and dword [ebp - 8], 0
mov edi, esi
add esi, dword [ebp - 0x24]
cmp dword [ebp - 0x10], 0
je 0x4058a2
test edi, edi
je 0x405881
mov ecx, esi
lea eax, [ebx + 0x18]
sub ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebp - 0x10]
call fcn.0041edf2
push eax
push dword [ebp - 0x10]
push esi
call fcn.00450cc0
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0042a097
and dword [ebp - 0x10], 0
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
inc byte [ebp - 1]
mov dword [ecx + eax*4], ebx
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
xor esi, esi
cmp eax, dword [ecx]
je 0x4058ce
inc byte [ebp - 2]
mov al, byte [ebp - 2]
cmp al, byte [0x495e1c]
jb 0x4055a3
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x405917
mov edi, 0xc0000017
mov esi, dword [ebp + 0xc]
xor eax, eax
xor bl, bl
cmp dword [esi], eax
jbe 0x405904
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x4058fb
push eax
call fcn.0042a097
inc bl
movzx eax, bl
cmp eax, dword [esi]
jb 0x4058eb
push 0
push 0
push edi
push 1
mov esi, str.BOOT.INI
call fcn.004042d9
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x405924
push dword [ebp - 0x28]
call fcn.0042a097
cmp dword [ebp - 0x18], esi
je 0x405931
push dword [ebp - 0x18]
call fcn.0042a097
cmp dword [ebp - 0x1c], esi
je 0x40593e
push dword [ebp - 0x1c]
call fcn.0042a097
cmp dword [ebp - 0xc], esi
je 0x40594b
push dword [ebp - 0xc]
call fcn.0042a097
cmp dword [ebp - 8], esi
je 0x405958
push dword [ebp - 8]
call fcn.0042a097
cmp dword [ebp - 0x10], esi
je 0x405965
push dword [ebp - 0x10]
call fcn.0042a097
cmp dword [ebp - 0x20], esi
je 0x405972
push dword [ebp - 0x20]
call fcn.0042a097
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc