Function at 0x4c4250
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x72c8ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push str.Begin_SaveGame...
mov ebx, ecx
call fcn.006e9a00
add esp, 4
xor ebp, ebp
push ebp
push str.Saves
mov byte [esp + 0x20], 0
mov byte [esp + 0x124], 0
mov byte [ebx + 0xb375], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x230]
cmp edx, ebp
je 0x4c4337
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c4337
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, ebp
je 0x4c4307
push 0x7a7114
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4c434c
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
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]
jmp 0x4c434c
mov ecx, dword [esp + 0x234]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004c4130
add esp, 8
lea edx, [esp + 0x11c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4c43a5
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c43a5
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]
push 0x574
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x228], ebp
je 0x4c43d8
push ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x124]
push edx
mov ecx, eax
call fcn.004b3f10
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x228], 0xffffffff
mov byte [esp + 0x13], 0
je 0x4c44c7
mov edx, dword [esp + 0x234]
test edx, edx
je 0x4c4422
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c4422
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp + 0x3d4]
sub edi, ecx
mov edx, esi
mov eax, ecx
mov esi, edi
jmp 0x4c443c
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x7c6180
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x3d4]
mov eax, ecx
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]
push 1
mov ecx, ebp
call fcn.004b6210
push 1
mov ecx, ebp
call fcn.004b6280
push 1
mov ecx, ebp
call fcn.004b62c0
mov dword [ebx + 4], ebp
mov ecx, dword [0x7c67e0]
call fcn.0048eb10
push 0
push 0
mov ecx, ebx
call fcn.004bbc30
test eax, eax
mov ecx, ebx
setne byte [esp + 0x13]
call fcn.004c7be0
mov al, byte [esp + 0x13]
test al, al
mov dword [ebx + 4], 0
je 0x4c44b7
mov esi, dword [ebx + 8]
test esi, esi
je 0x4c44b2
mov ecx, esi
call fcn.004b4140
push esi
call fcn.00727530
add esp, 4
mov dword [ebx + 8], ebp
jmp 0x4c44c7
mov ecx, ebp
call fcn.004b4140
push ebp
call fcn.00727530
add esp, 4
mov byte [ebx + 0xb375], 0
mov ecx, dword [0x7c67e0]
call fcn.0048eb60
push str.End_SaveGame...
call fcn.006e9a00
mov ecx, dword [esp + 0x224]
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 8