Function at 0x10078370
Capabilities:
Check os version
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov ecx, 6
mov esi, str.menu.lst__grldr__grldr.mbr
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
mov ebx, 1
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov byte [esp + 0x1d], al
mov dword [esp + 0xc], ebx
cmp dword [0x1019e748], eax
jne 0x100783e3
mov dword [0x1019e748], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x100783e3
cmp al, 6
jb 0x100783e3
mov dword [0x1019e74c], ebx
lea edi, [ebx + 2]
jmp 0x100783f8
cmp dword [0x1019e74c], 0
je 0x100783f3
mov edi, 3
jmp 0x100783f8
mov edi, 2
xor eax, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov byte [esp + 0x29], al
call fcn.10048200
mov al, byte [esp + 0x20]
push ebx
lea ecx, [esp + 0x14]
push 0x2c
push ecx
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x38]
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0x3a
mov byte [esp + 0x22], 0
mov dword [esp + 0x1c], 0
call fcn.10045850
add esp, 0xc
test edi, edi
je 0x10078530
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ecx]
cmp dword [esp + 0x10], 0xffffffff
je 0x1007852b
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push 0x1013fbf8
push ecx
call fcn.1010d6a8
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x60]
call fcn.10044660
add esp, 0x18
test eax, eax
jne 0x10078512
cmp dword [ebp + 8], 1
jg 0x100784eb
lea edx, [esp + 0x48]
push edx
call ebx
cmp dword [ebp + 8], 0
je 0x100784bd
or eax, 7
push eax
lea eax, [esp + 0x4c]
push eax
call esi
jmp 0x100784eb
lea ecx, [esp + 0x150]
push str.menu.lst
push ecx
call fcn.1011c280
add esp, 8
test eax, eax
je 0x100784eb
push 0x80
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x48]
call fcn.10033960
push 1
lea eax, [esp + 0x14]
push 0x2c
push eax
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x38]
dec edi
call fcn.10045850
add esp, 0xc
test edi, edi
jne 0x10078460
jmp 0x1007852b
xor eax, eax
mov cl, byte [esp + eax + 0x48]
mov byte [eax + 0x10194488], cl
inc eax
test cl, cl
jne 0x10078514
mov dword [esp + 0xc], 0
mov ebx, 1
cmp dword [ebp + 8], 2
jne 0x100785da
cmp dword [esp + 0xc], 0
je 0x100785da
cmp dword [0x1019e748], 0
jne 0x1007856a
mov dword [0x1019e748], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1007856a
cmp al, 6
jb 0x1007856a
mov dword [0x1019e74c], ebx
jmp 0x10078573
cmp dword [0x1019e74c], 0
je 0x100785da
push 0x103
lea ecx, [esp + 0x25d]
push 0
push ecx
mov byte [esp + 0x264], 0
call fcn.10116880
add esp, 0xc
push str.ERMID
lea eax, [esp + 0x10]
lea edi, [esp + 0x25c]
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
call fcn.100315c0
xor eax, eax
cmp byte [esp + 0x258], al
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x364]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret