Function at 0x10017c80
Capabilities:
Manipulate boot configuration
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x1098
call fcn.1003dcd0
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x1094], eax
mov eax, dword [esp + 0x109c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x26e]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x274], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea edx, [esp + 0x476]
push ebx
push edx
mov word [esp + 0x47c], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea eax, [esp + 0xa8e]
push ebx
push eax
mov word [esp + 0xa94], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea ecx, [esp + 0xe9e]
push ebx
push ecx
mov word [esp + 0xea4], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea edx, [esp + 0x886]
push ebx
push edx
mov word [esp + 0x88c], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea eax, [esp + 0xc96]
push ebx
push eax
mov word [esp + 0xc9c], bx
call fcn.1003d360
add esp, 0xc
push 0x206
lea ecx, [esp + 0x67e]
push ebx
push ecx
mov word [esp + 0x684], bx
call fcn.1003d360
mov esi, dword [esp + 0x10c0]
lea eax, [esp + 0x274]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10017db2
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10017db2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10017d92
jmp 0x10017db6
cmp edx, ebx
jne 0x10017db9
sub eax, 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x268]
push edx
mov word [eax], bx
call edi
mov ecx, 0x104
lea eax, [esp + 0x268]
cmp word [eax], bx
je 0x10017de7
add eax, 2
sub ecx, 1
jne 0x10017dd8
jmp 0x10017e0a
cmp ecx, ebx
je 0x10017e0a
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 0x268]
mov eax, str.ntldr
call fcn.100067e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10017e2b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10017e44
lea edx, [esp + 0x268]
mov ecx, 0x10057a18
call fcn.10018ef0
cmp eax, ebx
jne 0x10018249
mov edx, 0x104
lea eax, [esp + 0x268]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10017e70
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10017e70
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10017e50
jmp 0x10017e74
cmp edx, ebx
jne 0x10017e77
sub eax, 2
lea edx, [esp + 0x268]
push edx
mov word [eax], bx
call edi
mov ecx, 0x104
lea eax, [esp + 0x268]
cmp word [eax], bx
je 0x10017e9f
add eax, 2
sub ecx, 1
jne 0x10017e90
jmp 0x10017ec2
cmp ecx, ebx
je 0x10017ec2
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 0x268]
mov eax, 0x1005a4b8
call fcn.100067e0
lea eax, [esp + 0x268]
push eax
call fcn.1000b750
add esp, 4
test eax, eax
jne 0x10017eef
lea edx, [esp + 0x268]
mov ecx, str.BOOTINI
call fcn.10018ef0
cmp eax, ebx
jne 0x10018249
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea ecx, [esp + 0x26c]
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x268]
push edx
push 0x104
lea eax, [esp + 0x680]
push eax
push str.none
push 0x10057aa4
push str.boot_loader
call edi
lea eax, [esp + 0x470]
lea esi, [esp + 0x678]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
jmp 0x10017f50
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10017f70
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10017f70
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10017f50
jmp 0x10017f74
cmp edx, ebx
jne 0x10017f77
sub eax, 2
lea edx, [esp + 0x470]
push str.none
push edx
mov word [eax], bx
call fcn.1003c8ff
add esp, 8
test eax, eax
jne 0x1001800a
lea edx, [esp + 0x268]
mov ecx, str.BOOTINI
call fcn.10018ef0
cmp eax, ebx
jne 0x10018249
lea eax, [esp + 0x268]
push eax
push 0x104
lea ecx, [esp + 0x680]
push ecx
push str.none
push 0x10057aa4
push str.boot_loader
call edi
mov edx, 0x104
lea eax, [esp + 0x470]
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10018000
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10018000
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10017fe0
jmp 0x10018004
cmp edx, ebx
jne 0x10018007
sub eax, 2
mov word [eax], bx
lea edx, [esp + 0x470]
push str.none
push edx
call fcn.1003c8ff
add esp, 8
test eax, eax
je 0x1001823b
lea eax, [esp + 0xa88]
lea esi, [esp + 0x470]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10018060
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10018060
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10018040
jmp 0x10018064
cmp edx, ebx
jne 0x10018067
sub eax, 2
lea edx, [esp + 0xa88]
push str.multi_
mov word [eax], bx
push edx
mov word [esp + 0xa9c], bx
call fcn.1003c8ff
add esp, 8
test eax, eax
jne 0x1001823b
lea eax, [esp + 0x470]
push eax
lea edi, [esp + 0x26c]
lea ecx, [esp + 0x67c]
call fcn.1000ebf0
lea eax, [esp + 0xe9c]
lea esi, [esp + 0x67c]
mov ecx, eax
add esp, 4
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x100180e4
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x100180e4
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100180c4
jmp 0x100180e8
cmp edx, ebx
jne 0x100180eb
sub eax, 2
lea edx, [esp + 0x470]
push 0x5c
push edx
mov word [eax], bx
call fcn.1003ca7d
add esp, 8
cmp eax, ebx
mov edx, 0x104
lea ecx, [esp + 0x880]
jne 0x10018152
lea esi, [esp + 0x678]
mov eax, ecx
sub esi, ecx
jmp 0x10018120
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10018146
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x10018146
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10018120
sub eax, 2
mov word [eax], bx
jmp 0x1001818a
cmp edx, ebx
jne 0x1001814d
sub eax, 2
mov word [eax], bx
jmp 0x1001818a
lea esi, [esp + 0x880]
sub eax, esi
lea esi, [eax + 2]
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10018180
movzx eax, word [ecx + esi]
cmp ax, bx
je 0x10018180
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10018160
jmp 0x10018184
cmp edx, ebx
jne 0x10018187
sub ecx, 2
mov word [ecx], bx
lea ecx, [esp + 0x470]
push ebx
push ecx
lea ecx, [esp + 0x270]
mov esi, str.operating_systems
call fcn.1000edd0
push ebx
push ebx
lea ecx, [esp + 0x278]
xor esi, esi
call fcn.1000edd0
mov edx, dword [esp + 0x10c0]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.10018270
lea ecx, [esp + 0x898]
push ecx
push eax
push str.multi_0_disk_0_rdisk_0_partition__d__s
lea edx, [esp + 0xcb4]
push 0x104
push edx
call fcn.10003980
add esp, 0x2c
lea eax, [esp + 0xe98]
push eax
lea ecx, [esp + 0xc94]
push ecx
lea ecx, [esp + 0x270]
mov esi, str.operating_systems
call fcn.1000edd0
lea edx, [esp + 0xc98]
push edx
push 0x10057aa4
lea ecx, [esp + 0x278]
mov esi, str.boot_loader
call fcn.1000edd0
push ebx
push ebx
lea ecx, [esp + 0x280]
xor esi, esi
call fcn.1000edd0
add esp, 0x18
push 7
lea eax, [esp + 0x26c]
push eax
call ebp
xor eax, eax
mov ecx, dword [esp + 0x10a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x1098
ret