Function at 0x40e7e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov dl, byte [0x421aac]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x247]
mov byte [ebp - 0x248], dl
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
push str.___r_n_s
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
call fcn.0040fe90
lea eax, [ebp - 0x40]
push eax
call fcn.00410a0e
lea eax, [ebp - 0x40]
push str.sys_
push eax
call fcn.0040fed0
add esp, 0x18
test eax, eax
je 0x40e8f3
push 1
lea eax, [ebp - 0x248]
pop ebx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0040ff50
mov edi, 0x4206bc
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.0040ff60
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.0040ff60
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0040ff60
add esp, 0x20
lea eax, [ebp - 0x3c]
push str.eZulaBootExe.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40e8f3
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40e8f3
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ea83
jmp 0x40ea7c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2b4]
push dword [esi + 8]
push 0x420698
push str._s_Upgrade_v_s__s
push eax
call fcn.0040f85f
add esp, 0x14
xor edi, edi
mov ecx, dword [esi + 4]
lea eax, [ebp - 0xc]
push edi
push 0x6c
push edi
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.0040158c
test eax, eax
je 0x40ea46
cmp dword [ebp - 0xc], edi
je 0x40ea46
lea eax, [ebp - 0x40]
push str.update
push eax
call fcn.0040fed0
pop ecx
test eax, eax
pop ecx
jne 0x40ea0a
lea eax, [ebp - 0x40]
push str.TouchTextU
push eax
call fcn.0040fed0
pop ecx
test eax, eax
pop ecx
jne 0x40ea0a
cmp ebx, edi
je 0x40e994
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0040ff50
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
jmp 0x40ea20
push dword [esi + 0x10]
lea eax, [ebp - 0x144]
push eax
call fcn.0040ff50
lea eax, [ebp - 0x144]
push str.Backup_
push eax
call fcn.0040ff60
lea eax, [ebp - 0x40]
push str.image
push eax
call fcn.0040fed0
add esp, 0x18
test eax, eax
je 0x40e9e9
lea eax, [ebp - 0x144]
push str.Images_
push eax
call fcn.0040ff60
lea eax, [ebp - 0x144]
push eax
call fcn.004108e0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x3e0]
push str._s_s
push eax
call fcn.0040f85f
add esp, 0x10
jmp 0x40ea34
push dword [esi + 0x14]
lea eax, [ebp - 0x144]
push eax
call fcn.0040ff50
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x14]
lea eax, [ebp - 0x3e0]
push str._s_s
push eax
call fcn.0040f85f
add esp, 0x18
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x3e0]
push eax
call fcn.00401506
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
call fcn.00401715
cmp dword [ebp - 8], edi
je 0x40ea79
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0040e789
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40ea79
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ea83
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4