Function at 0x1007bb80
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1174]
mov eax, 0x1174
call fcn.10126240
push 0xfffffffffffffffe
push 0x1016f658
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1170], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x117c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x24]
push edi
lea ecx, [ebp + 0xc30]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea ecx, [ebp + 0xc30]
call fcn.10049c40
push str.BOOT
lea edx, [ebp + 0xc30]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
push edi
lea eax, [ebp + 0xd34]
push eax
call esi
lea ecx, [ebp + 0xd34]
call fcn.10049c40
push str.BOOTgrldr
lea ecx, [ebp + 0xd34]
push ecx
call ebx
push edi
lea edx, [ebp + 0xb2c]
push edx
call esi
lea ecx, [ebp + 0xb2c]
call fcn.10049c40
push str.BOOTUEFI
lea eax, [ebp + 0xb2c]
push eax
call ebx
push edi
lea ecx, [ebp + 0xe38]
push ecx
call esi
lea ecx, [ebp + 0xe38]
call fcn.10049c40
push str.BOOTUEFIEFIBOOTerescue_bzimg
lea edx, [ebp + 0xe38]
push edx
call ebx
lea edi, [ebp + 0xb2c]
call fcn.10044b00
mov dword [ebp - 0x28], eax
lea edi, [ebp + 0xc30]
call fcn.10044b00
mov edi, eax
test edi, edi
jne 0x1007bcb4
lea eax, [ebp + 0xc30]
push eax
mov ecx, str._ERMINST__Unable_to_find_folder___s___n
call fcn.10079d30
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x1007bcce
lea ecx, [ebp + 0xb2c]
push ecx
mov ecx, str._ERMINST__Unable_to_find_folder___s___n
call fcn.10079d30
add esp, 4
push 0
push 0
xor edx, edx
lea ecx, [ebp + 0xd34]
call fcn.10044660
add esp, 8
test eax, eax
je 0x1007bcfc
lea edx, [ebp + 0xd34]
push edx
mov ecx, str._ERMINST__Unable_to_find_file___s___n
call fcn.10079d30
add esp, 4
jmp 0x1007bd03
mov dword [ebp - 0x2c], 1
push 0
push 0
lea edx, [ebp - 0x34]
lea ecx, [ebp + 0xe38]
call fcn.10044660
add esp, 8
test eax, eax
je 0x1007bd35
lea eax, [ebp + 0xe38]
push eax
mov ecx, str._ERMINST__Unable_to_find_file___s___n
call fcn.10079d30
add esp, 4
mov eax, dword [ebp - 0x30]
jmp 0x1007bd3a
mov eax, 1
test edi, edi
je 0x1007c7c0
cmp dword [ebp - 0x2c], 0
je 0x1007c7c0
cmp dword [ebp - 0x28], 0
je 0x1007c7c0
test eax, eax
je 0x1007c7c0
call fcn.1006de90
cmp eax, 1
jne 0x1007bd7c
push 0
mov ecx, str._ERMINST_UEFI__GPT_Partition_Detected__UEFI_boot_enabled_._n
call fcn.10079d30
add esp, 4
jmp 0x1007c7c0
cmp eax, 0xffffffff
jne 0x1007bd90
push 0
mov ecx, str._ERMINST__Unable_to_detect_if_GPT_Partition__n
call fcn.10079d30
add esp, 4
call fcn.10078020
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
jne 0x1007bda6
mov ecx, str._ERMINST__Boot_Loader___1__Error__n
jmp 0x1007bdc8
cmp edi, 1
jne 0x1007bdb2
mov ecx, str._ERMINST__Boot_Loader__1__NTLDR__n
jmp 0x1007bdc8
cmp edi, 2
jne 0x1007bdbe
mov ecx, str._ERMINST__Boot_Loader__2__GRLDR__n
jmp 0x1007bdc8
cmp edi, 3
jne 0x1007bddb
mov ecx, str._ERMINST__Boot_Loader__3__Unknown__n
push 0
call fcn.10079d30
add esp, 4
cmp edi, 3
je 0x1007c79c
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x24]
push edi
lea ecx, [ebp + 0x514]
push ecx
call esi
lea ecx, [ebp + 0x514]
call fcn.10049c40
push str.BOOT
lea edx, [ebp + 0x514]
push edx
call ebx
push edi
lea eax, [ebp + 0xe38]
push eax
call esi
lea ecx, [ebp + 0xe38]
call fcn.10049c40
push str.BOOTgrldr
lea ecx, [ebp + 0xe38]
push ecx
call ebx
push edi
lea edx, [ebp + 0x30c]
push edx
call esi
lea ecx, [ebp + 0x30c]
call fcn.10049c40
push str.BOOTUEFI
lea eax, [ebp + 0x30c]
push eax
call ebx
push edi
lea ecx, [ebp + 0xd34]
push ecx
call esi
lea ecx, [ebp + 0xd34]
call fcn.10049c40
push str.BOOTUEFIEFIBOOTerescue_bzimg
lea edx, [ebp + 0xd34]
push edx
call ebx
lea edi, [ebp + 0x30c]
call fcn.10044b00
mov edi, eax
push 0
lea eax, [ebp + 0x514]
push eax
call fcn.10044cc0
add esp, 8
mov esi, eax
test esi, esi
jne 0x1007bea9
lea ecx, [ebp + 0x514]
push ecx
mov ecx, str._ERMINST__Unable_to_find_folder___s___n
call fcn.10079d30
add esp, 4
xor ebx, ebx
cmp edi, ebx
jne 0x1007bec3
lea edx, [ebp + 0x30c]
push edx
mov ecx, str._ERMINST__Unable_to_find_folder___s___n
call fcn.10079d30
add esp, 4
push ebx
push ebx
xor edx, edx
lea ecx, [ebp + 0xe38]
call fcn.10044660
add esp, 8
test eax, eax
je 0x1007beed
lea eax, [ebp + 0xe38]
push eax
mov ecx, str._ERMINST__Unable_to_find_file___s___n
call fcn.10079d30
add esp, 4
push ebx
push ebx
lea edx, [ebp - 0x30]
lea ecx, [ebp + 0xd34]
call fcn.10044660
add esp, 8
test eax, eax
je 0x1007bf18
lea ecx, [ebp + 0xd34]
push ecx
mov ecx, str._ERMINST__Unable_to_find_file___s___n
call fcn.10079d30
add esp, 4
cmp esi, ebx
je 0x1007c79c
cmp edi, ebx
je 0x1007c79c
push ebx
push ebx
xor edx, edx
lea ecx, [ebp + 0xe38]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1007c79c
push ebx
push ebx
xor edx, edx
lea ecx, [ebp + 0xd34]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1007c79c
or eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x1b], bl
mov byte [ebp + 0xa28], bl
push 0x103
push ebx
lea edx, [ebp + 0xa29]
push edx
call fcn.10116880
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1d]
push ecx
lea edx, [ebp - 0x1a]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push ebx
mov edx, dword [ebp - 0x24]
push edx
lea edx, [ebp + 0xa28]
lea ecx, [ebp - 0x1b]
call fcn.10079e60
add esp, 0x2c
test eax, eax
je 0x1007c79c
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
push ebx
mov ecx, str.menu.lst
lea ebx, [ebp + 0x514]
call fcn.10048370
push 1
xor ebx, ebx
push ebx
xor edx, edx
lea ecx, [ebp + 0xe38]
call fcn.10044660
add esp, 0xc
test eax, eax
jne 0x1007c79c
mov byte [ebp + 0x1164], bl
mov dword [ebp + 0x1165], eax
mov dword [ebp + 0x1169], eax
mov byte [ebp + 0x116d], al
mov byte [ebp + 0x618], bl
push 0x103
push ebx
lea eax, [ebp + 0x619]
push eax
call fcn.10116880
mov byte [ebp + 0xb2c], bl
push 0x103
push ebx
lea ecx, [ebp + 0xb2d]
push ecx
call fcn.10116880
add esp, 0x18
mov dword [ebp - 0x38], ebx
lea esi, [ebp + 0x1164]
call fcn.10048200
mov ecx, esi
call fcn.10049c40
mov edx, esi
push edx
lea eax, [ebp + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.menu.lst
lea ecx, [ebp + 0x1040]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push ebx
xor edx, edx
lea ecx, [ebp + 0x1040]
call fcn.10044660
mov esi, eax
push esi
lea edx, [ebp + 0x1040]
push edx
push str.MenuLst:___s___isf:_u
lea eax, [ebp + 0x618]
push eax
call fcn.1010d6a8
lea ecx, [ebp + 0x618]
push ecx
mov ecx, str._ERMINST___s_n
call fcn.10079d30
add esp, 0x1c
cmp esi, ebx
jne 0x1007c1be
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x28]
lea edx, [ebp + 0x1040]
call fcn.1005bf90
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x1007c1be
push str.eScanVC
mov ecx, edi
call fcn.10047020
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov dword [ebp - 0x44], edx
push str._bzImage
mov ecx, edi
call fcn.10047020
add esp, 8
cmp eax, 0xffffffff
je 0x1007c10c
mov dword [ebp - 0x40], 1
jmp 0x1007c1b5
push str.erescue_bzimg
mov ecx, edi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1007c181
xor edi, edi
mov dword [ebp - 0x4c], edi
push edi
lea eax, [ebp + 0x1164]
push eax
push str._smenu_2u.lst
lea ecx, [ebp + 0xb2c]
push ecx
call fcn.1010d6a8
push 1
push ebx
xor edx, edx
lea ecx, [ebp + 0xb2c]
call fcn.10044660
add esp, 0x18
test eax, eax
je 0x1007c17e
push ebx
lea edi, [ebp + 0xb2c]
lea ebx, [ebp + 0x1040]
call fcn.10063ba0
mov edx, edi
push edx
mov ecx, str._ERMINST__Backup_of_menu.lst_kept_as__s_n
call fcn.10079d30
add esp, 8
xor ebx, ebx
mov edi, dword [ebp - 0x28]
jmp 0x1007c1b5
inc edi
jmp 0x1007c122
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x34], 2
jne 0x1007c1a7
push str.Windows
mov ecx, edi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1007c1a7
mov dword [ebp - 0x38], ebx
jmp 0x1007c1b5
push ebx
mov ecx, str._ERMINST__MENU.LST_having_reference_to_erescue_bzimg_n
call fcn.10079d30
add esp, 4
push edi
call fcn.1010dc10
add esp, 4
push ebx
cmp dword [ebp - 0x40], ebx
jne 0x1007c78f
mov dword [0x101936b0], 1
call fcn.10078370
add esp, 4
push ebx
push 1
lea eax, [ebp + 0x1164]
push eax
mov edx, 0x10149c34
lea ecx, [ebp + 0x514]
call fcn.10048680
push ebx
mov ecx, str.escanrd.iso
lea ebx, [ebp + 0x514]
call fcn.10048370
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x1007c218
cmp dword [ebp - 0x38], 0
jne 0x1007c737
push 0
mov ecx, str.menu.lst
lea ebx, [ebp + 0x1164]
call fcn.10048370
add esp, 4
xor ebx, ebx
cmp esi, ebx
je 0x1007c241
lea ecx, [ebp + 0x1040]
push ecx
mov ecx, str._ERMINST__InstallERM:_Creating__s_n
jmp 0x1007c24d
lea edx, [ebp + 0x1040]
push edx
mov ecx, str._ERMINST__InstallERM:_Re_Creating__s_n
call fcn.10079d30
add esp, 4
mov byte [ebp + 0x104], bl
push 0x103
push ebx
lea eax, [ebp + 0x105]
push eax
call fcn.10116880
lea ecx, [ebp + 0x104]
push ecx
call fcn.1004f340
push str.eScanVC
push str.Created_by__s
lea edx, [ebp + 0x924]
push edx
call fcn.1010d6a8
lea eax, [ebp + 0x924]
push eax
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.timeout_27
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.default_0
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push 0x101483c0
lea ecx, [ebp + 0x1040]
call fcn.100462c0
lea ecx, [ebp + 0x104]
push ecx
push str.title___s_
lea edx, [ebp + 0x924]
push edx
call fcn.1010d6a8
lea eax, [ebp + 0x924]
push eax
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.root__hd0_0_
lea ecx, [ebp + 0x1040]
call fcn.100462c0
add esp, 0x40
push str.makeactive
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.chainloader__hd0_0__bootmgr
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.boot
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push 0x101483c0
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.title__eScan_Rescue_Mode_
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.find___set_root__EFI_Boot_erescue_bzimg
lea ecx, [ebp + 0x1040]
call fcn.100462c0
add esp, 0x18
mov byte [ebp - 0x19], 0x61
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x1007c382
add al, 0x61
mov byte [ebp - 0x19], al
mov dword [ebp - 0x50], ebx
mov byte [ebp + 0x410], bl
push 0x103
push ebx
lea ecx, [ebp + 0x411]
push ecx
call fcn.10116880
mov byte [ebp], bl
push 0x103
push ebx
lea edx, [ebp + 1]
push edx
call fcn.10116880
mov byte [ebp + 0xc30], bl
push 0x103
push ebx
lea eax, [ebp + 0xc31]
push eax
call fcn.10116880
movsx ecx, byte [ebp - 0x1b]
push ecx
push str._c:_
lea edx, [ebp + 0x1144]
push edx
call fcn.1010d6a8
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xc30]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp + 0x410]
lea edx, [ebp + 0x1144]
call fcn.10031ce0
add esp, 0x3c
cmp byte [ebp + 0x410], bl
je 0x1007c6d1
cmp byte [ebp + 0xc30], bl
je 0x1007c6d1
push 0x10149b80
lea ecx, [ebp + 0xc30]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1007c44c
push 0x10149b74
lea eax, [ebp + 0xc30]
push eax
call fcn.1011c280
add esp, 8
test eax, eax
jne 0x1007c6d1
cmp dword [ebp - 0x30], 0x400000
jae 0x1007c480
movsx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
push eax
lea ecx, [ebp + 0x410]
push ecx
push str.kernel__EFI_Boot_erescue_bzimg_quiet_tceUUID_s_vga788_sysdevid_c_d_esdevid_c_d_boottyperescue_config_rescue.ini
lea edx, [ebp + 0x208]
push edx
call fcn.1010d6a8
add esp, 0x1c
jmp 0x1007c6f2
lea eax, [ebp + 0x410]
push eax
mov ecx, eax
push ecx
mov edx, eax
push edx
push str.kernel__EFI_Boot_erescue_bzimg_quiet_tceUUID_s_vga788_sysdevidUUID_s_esdevidUUID_s_boottyperescue_config_rescue.ini
lea eax, [ebp + 0x208]
push eax
call fcn.1010d6a8
add esp, 0x14
cmp byte [ebp + 0xa28], bl
je 0x1007c6f2
mov byte [ebp + 0xf3c], bl
push 0x103
push ebx
lea ecx, [ebp + 0xf3d]
push ecx
call fcn.10116880
mov byte [ebp + 0x71c], bl
push 0x103
push ebx
lea edx, [ebp + 0x71d]
push edx
call fcn.10116880
mov dword [ebp - 0x24], ebx
mov byte [ebp + 0x924], bl
push 0x103
push ebx
lea eax, [ebp + 0x925]
push eax
call fcn.10116880
mov byte [ebp + 0x820], bl
push 0x103
push ebx
lea ecx, [ebp + 0x821]
push ecx
call fcn.10116880
add esp, 0x30
push 0x80
lea edx, [ebp + 0xa28]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp + 0xf3c], bl
mov dword [ebp - 0x24], ebx
mov byte [ebp + 0x71c], bl
movsx eax, byte [ebp - 0x1a]
push eax
push str._c:_
lea ecx, [ebp + 0x1154]
push ecx
call fcn.1010d6a8
lea edx, [ebp + 0x924]
push edx
lea eax, [ebp + 0x71c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0xf3c]
lea edx, [ebp + 0x1154]
call fcn.10031ce0
add esp, 0x18
cmp byte [ebp + 0xf3c], bl
je 0x1007c5b0
lea edx, [ebp + 0xf3c]
push edx
push str.UUID_s
lea eax, [ebp + 0x820]
push eax
call fcn.1010d6a8
push str.General
lea esi, [ebp + 0xa28]
lea eax, [ebp + 0x820]
mov ebx, str.QuarantDevID
call fcn.10042d90
add esp, 0x10
xor ebx, ebx
mov byte [ebp + 0xf3c], bl
mov dword [ebp - 0x24], ebx
mov byte [ebp + 0x71c], bl
movsx ecx, byte [ebp - 0x1d]
push ecx
push str._c:_
lea edx, [ebp + 0x1154]
push edx
call fcn.1010d6a8
lea eax, [ebp + 0x924]
push eax
lea ecx, [ebp + 0x71c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0xf3c]
lea edx, [ebp + 0x1154]
call fcn.10031ce0
add esp, 0x18
cmp byte [ebp + 0xf3c], bl
je 0x1007c63b
lea eax, [ebp + 0xf3c]
push eax
push str.UUID_s
lea ecx, [ebp + 0x820]
push ecx
call fcn.1010d6a8
push str.General
lea esi, [ebp + 0xa28]
lea eax, [ebp + 0x820]
mov ebx, str.PluginsDevID
call fcn.10042d90
add esp, 0x10
xor ebx, ebx
mov byte [ebp + 0xf3c], bl
mov dword [ebp - 0x24], ebx
mov byte [ebp + 0x71c], bl
movsx edx, byte [ebp - 0x1c]
push edx
push str._c:_
lea eax, [ebp + 0x1154]
push eax
call fcn.1010d6a8
lea ecx, [ebp + 0x924]
push ecx
lea edx, [ebp + 0x71c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xf3c]
lea edx, [ebp + 0x1154]
call fcn.10031ce0
add esp, 0x18
cmp byte [ebp + 0xf3c], bl
je 0x1007c6c4
lea ecx, [ebp + 0xf3c]
push ecx
push str.UUID_s
lea edx, [ebp + 0x820]
push edx
call fcn.1010d6a8
push str.General
lea esi, [ebp + 0xa28]
lea eax, [ebp + 0x820]
mov ebx, str.LogDirDevID
call fcn.10042d90
add esp, 0x10
lea esi, [ebp + 0xa28]
call fcn.10079e40
jmp 0x1007c6f2
movsx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
push eax
push ecx
push eax
push str.kernel__EFI_Boot_erescue_bzimg_quiet_tcesd_c_d_vga788_sysdevid_c_d_esdevid_c_d_boottyperescue_config_rescue.ini
lea eax, [ebp + 0x208]
push eax
call fcn.1010d6a8
add esp, 0x20
lea ecx, [ebp + 0x208]
push ecx
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.initrd__EFI_Boot_erescue_ird.gz
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push str.boot
lea ecx, [ebp + 0x1040]
call fcn.100462c0
push 0x101483c0
lea ecx, [ebp + 0x1040]
call fcn.100462c0
add esp, 0x10
mov byte [ebp + 0x618], 0
lea esi, [ebp + 0x618]
call fcn.10079c90
test eax, eax
je 0x1007c76f
push 0
mov ecx, str._ERMINST__InstallERM:_Success_n
call fcn.10079d30
mov dword [ebp - 0x48], 1
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x48]
jmp 0x1007c7c9
cmp byte [ebp + 0x618], 0
je 0x1007c786
lea edx, [ebp + 0x618]
push edx
mov ecx, str._ERMINST__InstallERM:_Fail___s__n
jmp 0x1007c794
push 0
mov ecx, str._ERMINST__InstallERM:_Fail__n
jmp 0x1007c794
mov ecx, str._ERMINST__Menu.lst_having_reference_to__bzImage__Not_installing_ERM..._n
call fcn.10079d30
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x48]
jmp 0x1007c7c9
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 + 0x1170]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x1174
mov esp, ebp
pop ebp
ret