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

Disassembly:
push ebp
lea ebp, [esp - 0x618]
sub esp, 0x618
push 0xfffffffffffffffe
push 0x1016f148
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x614], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x620]
mov dword [ebp - 0x1c], edi
mov byte [ebp + 0x400], 0
push 0x103
xor ebx, ebx
push ebx
lea eax, [ebp + 0x401]
push eax
call fcn.10116880
mov byte [ebp], bl
push 0x3ff
push ebx
lea ecx, [ebp + 1]
push ecx
call fcn.10116880
add esp, 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x100797c9
mov byte [edi], bl
call fcn.1004fe90
test eax, eax
je 0x100797e0
call fcn.1006de90
cmp eax, 1
je 0x100799ea
call fcn.10078020
mov esi, eax
cmp esi, 2
jne 0x100797f7
push ebx
push 0x1e
call fcn.10078e80
add esp, 8
call fcn.1004fe90
test eax, eax
je 0x100798ae
cmp esi, 2
je 0x100799ea
mov dword [ebp - 0x2c], 0x104
push str.ERMID
lea eax, [ebp - 0x2c]
lea edi, [ebp + 0x400]
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100315c0
cmp byte [ebp + 0x400], 0
je 0x10079b0d
call fcn.1004f190
test eax, eax
je 0x10079855
lea edx, [ebp - 0x28]
push edx
call fcn.1004f240
add esp, 4
mov ebx, eax
lea eax, [ebp + 0x400]
push eax
push str.BCDEDIT.EXE__displayorder__s__remove
lea ecx, [ebp]
push ecx
call fcn.1010d6a8
add esp, 0xc
lea eax, [ebp]
call fcn.10047700
mov esi, eax
test ebx, ebx
je 0x10079887
mov edx, dword [ebp - 0x28]
push edx
call fcn.1004f2c0
add esp, 4
test esi, esi
je 0x100799d9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10079b0d
push esi
push str._ERMUNINST__BCDEDIT_fails_with_error__u_
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x10079b0d
mov byte [ebp + 0x608], 0
xor eax, eax
mov dword [ebp + 0x609], eax
mov dword [ebp + 0x60d], eax
mov byte [ebp + 0x611], al
lea esi, [ebp + 0x608]
call fcn.10048200
call fcn.10049c80
mov eax, esi
push eax
push str._s_boot.ini
lea ecx, [ebp + 0x504]
push ecx
call fcn.1010d6a8
push 1
push 0
xor edx, edx
lea ecx, [ebp + 0x504]
call fcn.10044660
add esp, 0x14
test eax, eax
je 0x10079927
test edi, edi
je 0x10079b0d
lea edx, [ebp + 0x504]
push edx
push str._ERMUNINST___s_absent_
push edi
call fcn.1010d6a8
add esp, 0xc
jmp 0x10079b0d
lea ecx, [ebp + 0x504]
call fcn.100447d0
mov edi, eax
add edi, 0x400
push edi
call fcn.1004e860
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x10079964
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10079b0d
push str._ERMUNINST__Malloc_fails_
push eax
call fcn.1010d6a8
jmp 0x10079b0a
lea eax, [ebp + 0x504]
push eax
push edi
push ebx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [ebx], 0
jne 0x100799a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10079992
push str._ERMUNINST__Operating_Systems_Section_empty_
push eax
call fcn.1010d6a8
add esp, 8
push ebx
call fcn.1010dc10
add esp, 4
jmp 0x10079b0d
mov esi, ebx
cmp byte [esi], 0
je 0x100799c8
push str.eScan_Rescue_Mode
mov ecx, esi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x100799fb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x100799a2
xor eax, eax
jne 0x100799fb
test ebx, ebx
je 0x100799d9
push ebx
call fcn.1010dc10
add esp, 4
xor eax, eax
mov edi, str.ERM_TDOSet
mov ebx, str.SoftwareMicroWorld
call fcn.10031430
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10079b16
mov dword [ebp - 0x24], 0
push edi
call fcn.1004e860
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10079a3d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10079a27
push str._ERMUNINST__Malloc_fails_
push eax
call fcn.1010d6a8
add esp, 8
test ebx, ebx
je 0x10079b0d
push ebx
call fcn.1010dc10
add esp, 4
jmp 0x10079b0d
mov esi, ebx
mov edi, eax
mov dword [ebp - 0x24], edi
cmp byte [esi], 0
je 0x10079a80
push str.eScan_Rescue_Mode
mov ecx, esi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x10079a73
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x10079a44
lea ecx, [ebp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
push 0x80
lea edx, [ebp + 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esi, [ebp + 0x504]
mov eax, dword [ebp - 0x20]
call fcn.10042e40
push edi
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test ebx, ebx
je 0x10079ac6
push ebx
call fcn.1010dc10
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10079ad6
push eax
call fcn.1010dc10
add esp, 4
xor eax, eax
mov edi, str.ERM_TDOSet
mov ebx, str.SoftwareMicroWorld
call fcn.10031430
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10079b16
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x614]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x618
mov esp, ebp
pop ebp
ret 4