Function at 0x4aed50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f99e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x18], 0x7fff
xor ecx, ecx
mov eax, 0x7fff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048f453
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4aef29
lea edx, [ebp - 0x99]
mov dword [ebp - 0x98], edx
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00402c20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call int.00418e40
add esp, 8
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0x20]
jbe 0x4aee3a
call fcn.0048fde0
cmp dword [ebp - 0x1c], 0x10
jb 0x4aee4b
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x100], edx
jmp 0x4aee54
lea eax, [ebp - 0x30]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
add ecx, dword [ebp - 0xa4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x4aeec5
mov dword [ebp - 0x104], 0x508190
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x104]
mov dl, byte [ecx]
mov byte [ebp - 0x109], dl
add dword [ebp - 0x104], 1
cmp byte [ebp - 0x109], 0
jne 0x4aee81
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0x508190
lea ecx, [ebp - 0x34]
call fcn.004049d0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00402c20
mov edx, dword [0x514fc4]
push edx
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402b10
mov ecx, dword [ebp - 0x84]
or ecx, 1
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402c20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0048fdf0
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x4aefea
lea ecx, [ebp - 0xd1]
mov dword [ebp - 0xd0], ecx
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.00402c20
mov dword [ebp - 0x114], str.Cannot_get_current_directory
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [ebp - 0x119], cl
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x119], 0
jne 0x4aef5a
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x118]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
push eax
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x80]
call fcn.004039e0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00414860
push 0x52c3e4
lea edx, [ebp - 0x64]
push edx
call fcn.00491f98
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00402c20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.0048fdf0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret