Function at 0x4acb00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x56ac
call fcn.004bf250
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.004bf1a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4acb62
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402540
jmp 0x4acdda
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4acb6b
sub ecx, edx
sar ecx, 1
je 0x4acba4
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4acba4
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4acdec
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x494]
call fcn.004045b0
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x464]
call fcn.00408630
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.004bf1a0
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.004045b0
push 0x50c74d
lea ecx, [ebp - 0x434]
call fcn.00401f90
lea eax, [ebp - 0x434]
push eax
call fcn.004b6000
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.00413d10
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4acc9a
mov eax, dword [eax]
push 0x104
push eax
lea eax, [ebp - 0x56a4]
push eax
call fcn.00411300
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.00411300
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.00411300
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.00411300
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.004ae0c6
add esp, 0x14
test al, al
je 0x4acd9d
lea eax, [ebp - 0x4c68]
push eax
call fcn.00402db0
pop ecx
push eax
lea eax, [ebp - 0x4c68]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004064c0
lea ecx, [ebp - 0x4a4]
call fcn.004135b0
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x56ac]
push eax
call fcn.00413600
add esp, 0xc
lea ecx, [ebp - 0x56a8]
call fcn.0040af00
lea ecx, [ebp - 0x4a4]
call fcn.004135f0
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.00408680
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.004bc11d
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004bfb1c
int3