Function at 0x10078e80
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x334
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
xor eax, eax
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov byte [esp + 0x2d], al
mov dword [esp + 0x20], ebx
call fcn.10048200
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esp + 0x24], bl
je 0x10078eee
mov eax, esi
lea ebx, [ebx]
inc eax
cmp byte [eax], bl
jne 0x10078ed0
lea ecx, [esp + 0x24]
sub eax, ecx
je 0x10078eee
cmp byte [esp + eax + 0x23], 0x5c
je 0x10078eee
push 0x10149ea8
mov edx, ecx
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x138]
push ecx
call esi
push str.menu.lst
lea edx, [esp + 0x138]
push edx
call edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
call esi
push str.menux.lst
lea edx, [esp + 0x34]
push edx
call edi
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x13c]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1007919c
lea eax, [esp + 0x134]
call fcn.10044c10
cmp eax, 0xffffffff
je 0x10078f6e
test al, 7
je 0x10078f6e
push 0x80
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x30]
call fcn.10044c10
cmp eax, 0xffffffff
je 0x10078f90
test al, 7
je 0x10078f90
push 0x80
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x30]
call fcn.10033960
lea ecx, [esp + 0x14]
lea edx, [esp + 0x134]
call fcn.1005bf90
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x1007919c
cmp eax, ebx
jne 0x10078fda
push esi
call fcn.1010dc10
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.1010d699
add esp, 0x334
ret
push ebp
lea edx, [esp + 0x12]
push edx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
push ecx
lea ebx, [esp + 0x28]
lea edi, [esp + 0x2c]
xor ebp, ebp
call fcn.10037650
mov edi, eax
test edi, edi
je 0x1007913e
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push edi
call fcn.100454f0
add esp, 4
test eax, eax
je 0x100790cb
cmp byte [edi], 0
je 0x100790cb
mov eax, 0x1015a994
mov ecx, edi
call fcn.10031940
test eax, eax
jne 0x10079095
call fcn.10056e70
add edi, 8
push edi
call fcn.1010dc05
add esp, 4
cmp eax, dword [esp + 0x348]
jne 0x100790c7
mov edx, dword [esp + 0x34c]
push edx
lea eax, [esp + 0x240]
push str.timeout__u
push eax
call fcn.1010d6a8
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x44]
call fcn.100462c0
add esp, 0x10
mov dword [esp + 0x24], 1
xor ebp, ebp
jmp 0x100790e5
mov eax, str.title
mov ecx, edi
call fcn.10031940
test eax, eax
jne 0x100790ba
test ebp, ebp
jne 0x100790ba
push 0x101483c0
lea ecx, [esp + 0x38]
call fcn.100462c0
add esp, 4
push edi
lea ecx, [esp + 0x38]
call fcn.100462c0
add esp, 4
xor ebp, ebp
jmp 0x100790e5
test ebp, ebp
jne 0x100790e0
push 0x101483c0
lea ecx, [esp + 0x38]
call fcn.100462c0
add esp, 4
mov ebp, 1
test ebx, ebx
je 0x100790ef
mov dl, byte [esp + 0x13]
mov byte [ebx], dl
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100790fd
mov cl, byte [esp + 0x12]
mov byte [eax], cl
test esi, esi
je 0x1007913e
push 0xa
push esi
mov edi, esi
call fcn.1010d780
add esp, 8
test eax, eax
jne 0x10079116
xor esi, esi
jmp 0x10079136
mov dl, byte [eax]
mov ebx, eax
mov byte [eax], 0
lea esi, [eax + 1]
dec eax
cmp byte [eax], 0xd
mov byte [esp + 0x13], dl
jne 0x10079136
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 0xd
mov byte [eax], 0
test edi, edi
jne 0x10079017
mov eax, dword [esp + 0x18]
push eax
call fcn.1010dc10
add esp, 4
cmp dword [esp + 0x24], 0
je 0x10079192
test ebp, ebp
jne 0x10079167
push 0x101483c0
lea ecx, [esp + 0x38]
call fcn.100462c0
add esp, 4
push 0
lea edi, [esp + 0x13c]
lea ebx, [esp + 0x38]
call fcn.10063ba0
add esp, 4
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 7
push eax
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x34]
call fcn.10033960
pop ebp
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x334
ret