Function at 0x4027f0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471dda
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov edi, ecx
mov ecx, dword [esi]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x88], esi
cmp ecx, eax
je 0x402859
mov edx, dword [ebp - 0x78]
push edx
mov ebx, eax
call fcn.0040bd00
mov ecx, dword [ebp - 0x78]
mov ebx, eax
mov eax, dword [esi + 4]
push ecx
push eax
mov eax, ebx
call fcn.0040be60
add esp, 0xc
mov dword [esi + 4], ebx
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [ebp - 0xb0], vtable.CIniFile.0
call eax
add eax, 0x10
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0x200
mov dword [ebp - 0xa4], 0x21
xor esi, esi
mov dword [ebp - 4], esi
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
movzx ecx, word [edi + 0x70]
push ecx
push 0x47ec78
lea edi, [ebp - 0x8c]
call fcn.004019a0
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c]
push edx
push 0x47fc58
lea edi, [ebp - 0xac]
call fcn.004019a0
add esp, 0x10
lea eax, [ebp - 0x9c]
push eax
push str.boot_loader
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00419240
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
sub eax, ecx
sar eax, 2
cmp eax, esi
jbe 0x402a30
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x84]
push edx
push eax
call fcn.00402650
mov ebx, dword [ebp - 0x84]
push 0x47ecac
push ebx
call fcn.00456745
mov edi, dword [ebp - 0x74]
add esp, 8
cmp eax, esi
jne 0x4029bc
push edi
call fcn.00456637
mov ecx, dword [ebp - 0x78]
add esp, 4
mov dword [ecx], eax
push 0x47ecbc
push ebx
call fcn.00456745
add esp, 8
cmp eax, esi
jne 0x402a1d
mov ebx, dword [ebp - 0x80]
lea eax, [edi - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x402a1d
cmp dword [ebx + 0xc], esi
jl 0x402a0e
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x402a0e
call fcn.00401a40
mov edi, eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402a06
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [ebp - 0x80], edi
jmp 0x402a1d
mov ebx, dword [edi - 0xc]
push edi
lea ecx, [ebp - 0x80]
push ecx
call fcn.00401e80
xor esi, esi
add dword [ebp - 0x70], 4
dec dword [ebp - 0x7c]
jne 0x40297f
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
push edx
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00407720
lea edx, [ebp - 0x9c]
push edx
push str.operating_systems
lea eax, [ebp - 0xb0]
push eax
call fcn.00419240
mov ebx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x9c]
mov eax, ebx
sub eax, edi
sar eax, 2
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], eax
cmp eax, esi
jbe 0x402def
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x84]
push edx
push eax
call fcn.00402650
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], cx
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x74]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402ad0
sub eax, edi
sar eax, 1
push eax
mov eax, edx
lea esi, [ebp - 0x68]
call fcn.0040e720
mov ebx, dword [ebp - 0x84]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402af5
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x4c]
call fcn.0040e720
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x402f0d
mov ecx, dword [ebp - 0x80]
push ebx
push ecx
call fcn.00456745
mov edi, dword [ebp - 0x88]
mov ecx, dword [edi + 4]
add esp, 8
test eax, eax
lea edx, [ebp - 0x6c]
sete byte [ebp - 0x6c]
cmp edx, ecx
jae 0x402c74
mov ebx, dword [edi]
mov eax, edx
cmp ebx, eax
ja 0x402c74
mov edi, dword [edi + 8]
sub edx, ebx
mov eax, 0x2e8ba2e9
imul edx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, edi
jne 0x402bcd
sub ecx, ebx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x2e8ba2d
ja 0x402f17
sub edi, ebx
mov eax, 0x2e8ba2e9
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x402bcd
mov edx, eax
shr edx, 1
mov edi, 0x2e8ba2e
sub edi, edx
cmp edi, eax
jae 0x402bb5
xor eax, eax
jmp 0x402bb7
add eax, edx
cmp eax, ecx
jae 0x402bbd
mov eax, ecx
mov ebx, dword [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.00408690
jmp 0x402bd3
mov ebx, dword [ebp - 0x88]
imul esi, esi, 0x58
add esi, dword [ebx]
mov edi, esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xb4], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x402c66
mov cl, byte [edi]
mov byte [esi], cl
xor edx, edx
lea ecx, [esi + 4]
push edx
lea eax, [edi + 4]
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
xor edx, edx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 8
push edx
lea eax, [edi + 0x20]
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
xor edx, edx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 9
push edx
add edi, 0x3c
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
add dword [ebx + 4], 0x58
mov ebx, 7
jmp 0x402d61
mov esi, dword [edi + 8]
cmp ecx, esi
jne 0x402cd7
mov ebx, dword [edi]
sub ecx, ebx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x2e8ba2d
ja 0x402f17
sub esi, ebx
mov eax, 0x2e8ba2e9
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x402cd7
mov edx, eax
shr edx, 1
mov esi, 0x2e8ba2e
sub esi, edx
cmp esi, eax
jae 0x402cc7
xor eax, eax
jmp 0x402cc9
add eax, edx
cmp eax, ecx
jae 0x402ccf
mov eax, ecx
push eax
mov ecx, edi
call fcn.00408690
mov esi, dword [edi + 4]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 0xa
mov ebx, 7
test esi, esi
je 0x402d5d
mov al, byte [ebp - 0x6c]
mov byte [esi], al
xor edx, edx
lea ecx, [esi + 4]
push edx
lea eax, [ebp - 0x68]
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
xor edx, edx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 0xb
push edx
lea eax, [ebp - 0x4c]
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
xor edx, edx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
push edx
lea eax, [ebp - 0x30]
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.0040e340
add dword [edi + 4], 0x58
mov esi, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], esi
jb 0x402d7b
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00454d68
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x38], esi
jb 0x402d9c
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00454d68
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x54], esi
jb 0x402dbd
mov edx, dword [ebp - 0x68]
push edx
call fcn.00454d68
add esp, 4
add dword [ebp - 0x70], 4
xor eax, eax
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x7c]
inc eax
xor esi, esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x78]
jb 0x402a84
mov edi, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x98]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
cmp edi, esi
je 0x402e9e
mov esi, edi
cmp edi, ebx
je 0x402e95
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x402e70
push edi
call fcn.00454d68
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ec4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00454d73
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004020c0
push str.vector_T__too_long
call fcn.0041d2ae
int3