Function at 0x4aa410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f7077
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x60]
mov edi, dword [ebp + 0xc]
call fcn.004cc2e0
mov dword [esp + 0x1b0], 0
test edi, edi
jne 0x4aa476
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esi, 0x14
mov ecx, esi
mov dword [esp + 0x90], esi
call dword [eax + 4]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
mov dword [esp + 0x34], vtable.CFile.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x1b0], 2
lea eax, [esp + 0x60]
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x34]
cmovae eax, dword [esp + 0x60]
push eax
call fcn.004960c0
test eax, eax
jne 0x4aa6a5
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
push 0x104
lea eax, [esp + 0x99]
mov byte [esp + 0x1b4], 3
push 0
push eax
mov byte [esp + 0xa0], 0
call fcn.004dc9b0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [esp + 0x30]
cmp dword [esp + 0x78], 0x10
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push eax
push 0x531ba0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004c6540
add esp, 0x14
mov dword [esp + 0x28], 0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov byte [eax], 0
cmp dword [esp + 0x2c], 0x10
jb 0x4aa59e
push dword [esp + 0x18]
call fcn.004d9d65
add esp, 4
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
mov ecx, dword [ecx + 4]
push eax
call fcn.004b74c0
mov byte [esp + 0x1b0], 4
lea eax, [esp + 0x78]
cmp dword [esp + 0x8c], 0x10
mov ecx, 0x58dba0
push 0
cmovae eax, dword [esp + 0x7c]
push eax
mov eax, dword [0x58dba0]
call dword [eax + 4]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x8c], 0x10
lea eax, [esp + 0x78]
mov dword [esp + 0x88], 0
cmovae eax, dword [esp + 0x78]
mov byte [eax], 0
cmp dword [esp + 0x8c], 0x10
jb 0x4aa626
push dword [esp + 0x78]
call fcn.004d9d65
add esp, 4
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
mov dword [esp + 0x8c], 0xf
cmovae eax, dword [esp + 0x48]
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
mov dword [esp + 0x58], 0
mov byte [eax], 0
cmp dword [esp + 0x5c], 0x10
jb 0x4aa66d
push dword [esp + 0x48]
call fcn.004d9d65
add esp, 4
lea eax, [esp + 0x38]
mov byte [esp + 0x1b0], 1
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x38], vtable.CFile.0
call dword [0x530444]
xor edi, edi
jmp 0x4aa6e4
push dword [esp + 0x38]
mov ecx, edi
call fcn.004a9180
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
call dword [eax + 0xc]
lea eax, [esp + 0x38]
mov byte [esp + 0x1b0], 1
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.CFile.0
call dword [0x530444]
mov edi, 1
mov byte [esp + 0x1b0], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x60]
mov dword [esp + 0x70], 0
cmovae ecx, dword [esp + 0x60]
mov byte [ecx], 0
cmp dword [esp + 0x74], 0x10
jb 0x4aa71f
push dword [esp + 0x60]
call fcn.004d9d65
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8