Function at 0x4ace46
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x56ac
call fcn.004bf5a0
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x208
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4acea8
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402540
jmp 0x4ad120
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4aceb1
sub ecx, edx
sar ecx, 1
je 0x4aceea
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4aceea
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4ad132
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x494]
call fcn.004045f0
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x464]
call fcn.00408670
xor ebx, ebx
lea ecx, [ebp - 0x494]
push edi
inc ebx
push ebx
call fcn.00402540
xor eax, eax
mov dword [ebp - 0x438], 7
push 0x208
mov word [ebp - 0x44c], ax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
mov dword [ebp - 0x43c], edi
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x47c]
call fcn.004045f0
push 0x50c78d
lea ecx, [ebp - 0x434]
call fcn.00401f90
lea eax, [ebp - 0x434]
push eax
call fcn.004b6340
cmp dword [ebp - 0x420], 0x10
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
mov dword [ebp - 0x56ac], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x56a8], eax
lea eax, [ebp - 0x56ac]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00413cc0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4acfe0
mov eax, dword [eax]
push 0x104
push eax
lea eax, [ebp - 0x56a4]
push eax
call fcn.004112a0
add esp, 0xc
lea ecx, [ebp - 0x494]
push edi
push ebx
call fcn.00402540
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
push 0x104
cmovae eax, dword [ebp - 0x47c]
push eax
lea eax, [ebp - 0x508c]
push eax
call fcn.004112a0
cmp dword [ebp - 0x450], 8
lea eax, [ebp - 0x464]
push 0x104
cmovae eax, dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x5294]
push eax
call fcn.004112a0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0x104
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x4e70]
push eax
call fcn.004112a0
add esp, 0x24
lea eax, [ebp - 0x56a4]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push ebx
call fcn.004ae40f
add esp, 0x14
test al, al
je 0x4ad0e3
lea eax, [ebp - 0x4c68]
push eax
call fcn.00402df0
pop ecx
push eax
lea eax, [ebp - 0x4c68]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00406500
lea ecx, [ebp - 0x4a4]
call fcn.00413560
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x56ac]
push eax
call fcn.004135b0
add esp, 0xc
lea ecx, [ebp - 0x56a8]
call fcn.0040adf0
lea ecx, [ebp - 0x4a4]
call fcn.004135a0
push edi
push ebx
lea ecx, [ebp - 0x434]
call fcn.00402490
push edi
push ebx
lea ecx, [ebp - 0x47c]
call fcn.00402540
push edi
push ebx
lea ecx, [ebp - 0x44c]
call fcn.00402540
lea ecx, [ebp - 0x464]
call fcn.004086c0
push edi
push ebx
lea ecx, [ebp + 0xc]
call fcn.00402540
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004bfe6c
int3