Function at 0x40e5c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.0044cf30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e625
push ebx
call fcn.0044bffb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jl 0x40e64a
cmp dword [ebp - 8], 8
jg 0x40e64a
mov eax, 1
jmp 0x40e64f
mov eax, 0
test eax, eax
je 0x40e726
mov eax, dword [ebp - 8]
cmp eax, 1
jl 0x40e664
cmp eax, 9
jl 0x40e67b
push 0xd9
push 0x40aa23e
push 9
call fcn.0044bff5
add esp, 0xc
dec eax
call 0x40e681
pop ebx
add ebx, dword [eax*4 + 0x49247c]
jmp ebx
cmp dword [ebp - 8], 9
jne 0x40e778
mov dword [ebp - 0x18], esp
push 0x104
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40e761
push 0x210
push 0x40aa23e
push 6
call fcn.0044bff5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
mov eax, 0
setg al
mov dword [ebp - 0x10], eax
jmp 0x40e826
cmp dword [ebp - 8], 0xa
jne 0x40e7ca
mov dword [ebp - 0x18], esp
push 0x104
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40e7b3
push 0x29c
push 0x40aa23e
push 6
call fcn.0044bff5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
mov eax, 0
setg al
mov dword [ebp - 0x10], eax
jmp 0x40e826
cmp dword [ebp - 8], 0xb
jne 0x40e81c
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
push 0x104
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40e805
push 0x328
push 0x40aa23e
push 6
call fcn.0044bff5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
mov eax, 0
setg al
mov dword [ebp - 0x10], eax
jmp 0x40e826
mov eax, 0x48732c
jmp 0x40e96c
push 0x80000301
push 0
push 1
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40e845
mov eax, 0x48732c
push eax
push 2
mov ebx, 0x138
call fcn.0044d350
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0x48b58c
push dword [ebp - 0x18]
call fcn.0040476c
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e889
push ebx
call fcn.0044bffb
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x40e8c3
push 0x48b58c
push dword [ebp - 4]
mov ecx, 2
call fcn.00404877
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e8bf
push ebx
call fcn.0044bffb
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x40e8db
cmp dword [ebp + 0xc], 1
je 0x40e8db
xor eax, eax
jmp 0x40e8e0
mov eax, 1
test eax, eax
je 0x40e90c
lea eax, [ebp - 4]
push eax
call fcn.0040e994
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e908
push ebx
call fcn.0044bffb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x48732c
push dword [ebp - 0x14]
call fcn.0040476c
add esp, 8
cmp eax, 0
jne 0x40e94b
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e941
push eax
mov ebx, eax
call fcn.0040480c
inc eax
push eax
call fcn.0044bfef
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40e96c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e967
push eax
mov ebx, eax
call fcn.0040480c
inc eax
push eax
call fcn.0044bfef
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40e96c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e97d
push ebx
call fcn.0044bffb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e98d
push ebx
call fcn.0044bffb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc