Function at 0x100011d6
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
push 8
call fcn.10004ddf
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x1021a950
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.10004ddf
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x1021a950
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x80000005
push 0
push 0x1001c2a0
push 0x80000004
push 0
push str.C:patch.exe
push 2
mov ebx, 0x26c
call fcn.10005220
add esp, 0x1c
push 0x80000005
push 0
push 0x101c60b5
push 0x80000004
push 0
push str.C:_bcdedit.exe
push 2
mov ebx, 0x26c
call fcn.10005220
add esp, 0x1c
call fcn.10001776
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100016ef
push 0
push 0
push 0
push 0x80000002
push 0
push 0
push 0x80000004
push 0
push str.C:patch.exe
push 3
mov ebx, 0x2c0
call fcn.100052c0
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10001301
mov eax, 0x1021a8cc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100012fc
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x100016ef
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 5
jg 0x100015f6
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
push 0x3e8
call fcn.10002a49
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.10002d0d
mov ebx, dword [ebp - 8]
call fcn.10001100
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x100015ba
mov ebx, dword [ebp - 8]
call fcn.10001119
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10001387
push 0x1f7
push 0x4010004
push 4
call fcn.10004de5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100013a4
push 0x1f7
push 0x4010004
push 1
call fcn.10004de5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x80000004
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x100013c1
mov eax, 0x1021a8f1
push eax
push 1
mov ebx, 0x154
call fcn.100053b0
add esp, 0x10
mov dword [ebp - 0x24], eax
push str.patch.exe
push dword [ebp - 0x24]
call fcn.10001139
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10001405
push ebx
call fcn.10004dd3
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x100015b2
mov ebx, dword [ebp - 0xc]
call fcn.10001119
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10001436
push 0x242
push 0x4010004
push 4
call fcn.10004de5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001453
push 0x242
push 0x4010004
push 1
call fcn.10004de5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.1000379f
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x100014aa
push ebx
call fcn.10004dd3
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x100014ba
push ebx
call fcn.10004dd3
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x100014e1
push dword [ebp - 0x14]
call fcn.10004194
test eax, eax
je 0x100014e1
mov eax, 1
jmp 0x100014e6
mov eax, 0
test eax, eax
je 0x100015b2
mov ebx, dword [ebp - 0xc]
call fcn.10001119
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x10001515
push 0x2c7
push 0x4010004
push 4
call fcn.10004de5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001532
push 0x2c7
push 0x4010004
push 1
call fcn.10004de5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, str.CONTINUE
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.100041d4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10001566
push ebx
call fcn.10004dd3
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
push 0x3e8
call fcn.10002a49
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 0xd
push dword [ebp - 0x14]
call fcn.10004347
jmp 0x100015ba
pop eax
pop ebx
pop ecx
jmp 0x10001352
add esp, 0xc
cmp dword [ebp - 0x14], 0
jle 0x100015de
push dword [ebp - 0x14]
call fcn.10004194
test eax, eax
je 0x100015de
mov eax, 1
jmp 0x100015e3
mov eax, 0
test eax, eax
je 0x100015f0
jmp 0x100015f6
pop ecx
jmp 0x10001303
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1000161c
push dword [ebp - 0x14]
call fcn.10004194
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1000161c
xor eax, eax
jmp 0x10001621
mov eax, 1
test eax, eax
je 0x1000164f
mov eax, 0x1021a905
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000164a
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x100016ef
mov eax, 0x1021a926
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10004752
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10001670
push ebx
call fcn.10004dd3
add esp, 4
cmp dword [ebp - 0x18], 0
jle 0x10001691
push dword [ebp - 0x18]
call fcn.1000475b
test eax, eax
je 0x10001691
mov eax, 1
jmp 0x10001696
mov eax, 0
test eax, eax
je 0x100016e7
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
push 0x3e8
call fcn.10002a49
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 0xd
push dword [ebp - 0x14]
call fcn.10004347
jmp 0x10001670
call fcn.10001776
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001701
call fcn.1000497d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10001715
mov eax, 1
jmp 0x1000171a
mov eax, 0
jmp 0x1000171f
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000173e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000173a
imul eax, dword [ebx]
jmp 0x1000172f
mov ecx, eax
test ecx, ecx
je 0x1000175d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10001756
push ebx
push eax
call fcn.10004dd3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10001744
call fcn.10004dd3
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret