Function at 0x4c4530
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x72c8ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
xor ebx, ebx
push edi
mov ecx, 0x7cb478
mov byte [esp + 0x18], bl
mov byte [esp + 0x11c], bl
call fcn.004d51b0
mov edx, dword [esp + 0x230]
cmp edx, ebx
mov ebp, eax
je 0x4c45fe
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c45fe
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea esi, [esp + 0x18]
mov edx, esi
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push 0x2e
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x4c45d3
push 0x7a7114
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4c4624
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x7a7114
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x18]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4c461f
or ecx, 0xffffffff
xor eax, eax
mov edi, str.quiksave.ess
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea edx, [esp + 0x18]
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4c467d
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c467d
or ecx, 0xffffffff
mov edi, str.Saves_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x11c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0047a960
add esp, 8
test eax, eax
je 0x4c47cb
push 0x574
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x228], ebx
je 0x4c4711
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x124]
push edx
mov ecx, eax
call fcn.004b3f10
mov esi, eax
jmp 0x4c4713
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x4c47cb
push 1
mov ecx, esi
call fcn.004b6210
mov ecx, esi
call fcn.004b4940
test eax, eax
je 0x4c4755
mov ecx, dword [0x7c67dc]
push 0x25b
call fcn.0040f930
push eax
call fcn.00477400
add esp, 4
jmp 0x4c47bb
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xae60]
push eax
mov ecx, esi
mov byte [edi + 0xb37a], 1
call fcn.004b5ae0
test al, al
jne 0x4c4792
mov ecx, dword [0x7c67dc]
push 0x25e
call fcn.0040f930
push eax
call fcn.00477b50
add esp, 4
cmp eax, 7
jne 0x4c47cf
jmp 0x4c47bb
mov ecx, esi
call fcn.004b6040
test al, al
je 0x4c47d5
mov ecx, dword [0x7c67dc]
push 0x25f
call fcn.0040f930
push eax
call fcn.00477b50
add esp, 4
cmp eax, 7
jne 0x4c47cf
mov ecx, esi
call fcn.004b4140
push esi
call fcn.00727530
add esp, 4
xor eax, eax
jmp 0x4c47d7
mov byte [edi + 0xb37a], bl
mov eax, esi
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4