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

Disassembly:
push ebp
lea ebp, [esp - 0x930]
sub esp, 0x930
push 0xfffffffffffffffe
push 0x1016f678
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x92c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x938]
mov dword [ebp - 0x20], ebx
mov byte [ebp], 0
push 0x3ff
xor esi, esi
push esi
lea eax, [ebp + 1]
push eax
call fcn.10116880
mov byte [ebp + 0x504], 0
push 0x103
push esi
lea ecx, [ebp + 0x505]
push ecx
call fcn.10116880
add esp, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1007924e
mov byte [ebx], 0
call fcn.1004fe90
test eax, eax
je 0x100792f8
call fcn.1006de90
cmp eax, 1
jne 0x100792f8
mov byte [ebp + 0x810], 0
push 0x103
push esi
lea edx, [ebp + 0x811]
push edx
call fcn.10116880
mov byte [ebp + 0x400], 0
push 0x103
push esi
lea eax, [ebp + 0x401]
push eax
call fcn.10116880
add esp, 0x18
lea edi, [ebp + 0x810]
call fcn.10039e30
cmp eax, 1
jne 0x1007970b
push 0x104
lea ebx, [ebp + 0x400]
mov esi, edi
call fcn.10042910
add esp, 4
call fcn.10078600
test eax, eax
jne 0x1007970b
push eax
push eax
push eax
push eax
push eax
push 1
push 1
mov ecx, ebx
push ecx
xor edx, edx
xor ecx, ecx
call fcn.10079e60
add esp, 0x20
mov dword [ebp - 4], 0xfffffffe
jmp 0x10079714
call fcn.10078020
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 3
je 0x10079444
mov byte [ebp + 0x914], 0
xor eax, eax
mov dword [ebp + 0x915], eax
mov dword [ebp + 0x919], eax
mov byte [ebp + 0x91d], al
lea esi, [ebp + 0x914]
call fcn.10048200
mov ecx, esi
call fcn.10049c40
mov edx, esi
push edx
lea eax, [ebp + 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.menu.lst
lea ecx, [ebp + 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push 0
xor edx, edx
lea ecx, [ebp + 0x810]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10079444
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp + 0x810]
call fcn.1005bf90
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x10079444
push str.eScanVC
mov ecx, esi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1007943b
mov byte [ebp + 0x608], 0
push 0x103
push 0
lea edx, [ebp + 0x609]
push edx
call fcn.10116880
mov byte [ebp + 0x70c], 0
push 0x103
push 0
lea eax, [ebp + 0x70d]
push eax
call fcn.10116880
add esp, 0x18
lea edi, [ebp + 0x608]
call fcn.10039e30
cmp eax, 1
jne 0x10079429
push 0x104
lea ebx, [ebp + 0x70c]
mov esi, edi
call fcn.10042910
lea ecx, [ebp + 0x810]
push ecx
push str._ERM__Re_creating__s_as_eScan_Identifier_string_missing_
push 0
call fcn.10053700
mov edx, ebx
push edx
call fcn.1007bb80
add esp, 0x14
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
jmp 0x10079438
push str._ERM__Unable_to_get_eScan_Install_Status_
push 0
call fcn.10053700
add esp, 8
mov edi, dword [ebp - 0x28]
push esi
call fcn.1010dc10
add esp, 4
cmp edi, 2
jne 0x10079455
push 0x1e
push 0
call fcn.10078e80
add esp, 8
call fcn.1004fe90
test eax, eax
je 0x10079520
cmp edi, 2
je 0x1007966a
mov dword [ebp - 0x30], 0x104
push str.ERMID
lea eax, [ebp - 0x30]
lea edi, [ebp + 0x504]
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100315c0
cmp byte [ebp + 0x504], 0
jne 0x100794b0
test ebx, ebx
je 0x1007970b
push str.Unable_to_get_Identifier_of_eScan_Rescue_Mode_Entry_
push ebx
call fcn.1010d6a8
jmp 0x10079708
call fcn.1004f190
test eax, eax
je 0x100794c8
lea eax, [ebp - 0x2c]
push eax
call fcn.1004f240
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 0x504]
push ecx
push str.BCDEDIT.exe__displayorder__s__addlast
lea edx, [ebp]
push edx
call fcn.1010d6a8
add esp, 0xc
lea eax, [ebp]
call fcn.10047700
mov esi, eax
cmp dword [ebp - 0x1c], 0
je 0x100794fc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1004f2c0
add esp, 4
test esi, esi
je 0x10079656
test ebx, ebx
je 0x1007970b
push esi
push str.BCDEDIT_fails_with_error__u_
push ebx
call fcn.1010d6a8
add esp, 0xc
jmp 0x1007970b
mov byte [ebp + 0x920], 0
xor eax, eax
mov dword [ebp + 0x921], eax
mov dword [ebp + 0x925], eax
mov byte [ebp + 0x929], al
lea esi, [ebp + 0x920]
call fcn.10048200
call fcn.10049c80
mov ecx, esi
push ecx
push str._s_boot.ini
lea edx, [ebp + 0x810]
push edx
call fcn.1010d6a8
push 1
push 0
xor edx, edx
lea ecx, [ebp + 0x810]
call fcn.10044660
add esp, 0x14
test eax, eax
je 0x10079599
test ebx, ebx
je 0x1007970b
lea eax, [ebp + 0x810]
push eax
push str._ERMINST___s_absent_
push ebx
call fcn.1010d6a8
add esp, 0xc
jmp 0x1007970b
mov dword [ebp - 0x1c], 0
lea ecx, [ebp + 0x810]
call fcn.100447d0
mov edi, eax
add edi, 0x400
push edi
call fcn.1004e860
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x100795dd
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1007970b
push str._ERMINST__Malloc_fails_
push eax
call fcn.1010d6a8
jmp 0x10079708
lea ecx, [ebp + 0x810]
push ecx
push edi
push ebx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [ebx], 0
jne 0x10079619
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1007960b
push str._ERMINST__Operating_Systems_Section_empty_
push eax
call fcn.1010d6a8
add esp, 8
push ebx
call fcn.1010dc10
add esp, 4
jmp 0x1007970b
mov edi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi], 0
je 0x10079643
push str.eScan_Rescue_Mode
mov ecx, edi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x10079649
push edi
call esi
lea edi, [edi + eax + 1]
jmp 0x10079621
cmp dword [ebp - 0x1c], 0
je 0x1007967b
test ebx, ebx
je 0x10079656
push ebx
call fcn.1010dc10
add esp, 4
mov eax, 1
mov edi, str.ERM_TDOSet
mov ebx, str.SoftwareMicroWorld
call fcn.10031430
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10079714
lea edx, [ebp + 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
push 0x80
lea eax, [ebp + 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esi, [ebp + 0x70c]
call fcn.100782e0
mov ecx, esi
push ecx
lea edx, [ebp + 0x920]
push edx
push str._sGRLDR_s
lea eax, [ebp + 0x608]
push eax
call fcn.1010d6a8
add esp, 0x10
lea ecx, [ebp + 0x608]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebp + 0x810]
mov eax, ebx
call fcn.10042e40
mov edx, dword [ebp - 0x1c]
push edx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x10079649
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 + 0x92c]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x930
mov esp, ebp
pop ebp
ret 4