Function at 0x4c92c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65c4b9
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov ebx, ecx
mov eax, dword [ebx + 0x120]
push 0xffffffffffffffff
add eax, 0x8c
push edi
push eax
lea ecx, [esp + 0x20c]
mov dword [esp + 0x224], 0xf
mov dword [esp + 0x220], edi
mov byte [esp + 0x210], 0
call fcn.00401d10
mov esi, dword [ebp + 8]
cmp esi, 2
mov dword [esp + 0x338], edi
jg 0x4c9a48
je 0x4c9682
sub esi, edi
je 0x4c953e
sub esi, 1
jne 0x4c9ad6
cmp dword [esp + 0x214], edi
je 0x4c93a7
lea eax, [ebx - 0x88]
push eax
lea ecx, [esp + 0x13c]
call fcn.004c82c0
mov byte [esp + 0x338], 1
mov ecx, dword [ebx + 0x100]
mov dword [esp + 0x18], 1
call fcn.00546e10
test al, al
mov byte [esp + 0x17], 1
jne 0x4c93ac
mov byte [esp + 0x17], 0
mov dword [esp + 0x338], edi
test byte [esp + 0x18], 1
je 0x4c93c6
lea ecx, [esp + 0x138]
call fcn.00401c70
cmp byte [esp + 0x17], 0
je 0x4c9ad6
push 0x66f61c
lea ecx, [esp + 0x120]
call fcn.00402130
push str.Delete_Replay_
lea ecx, [esp + 0xe8]
mov byte [esp + 0x33c], 2
call fcn.00402130
lea ecx, [esp + 0x200]
push ecx
lea edx, [esp + 0x174]
push str.Are_you_sure_you_want_to_delete
push edx
mov byte [esp + 0x344], 3
call fcn.0044cec0
add esp, 0xc
push 0x679a5c
push eax
lea eax, [esp + 0x15c]
push eax
mov byte [esp + 0x344], 4
call fcn.0044cf70
add esp, 0xc
mov edx, eax
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x33c], 5
mov eax, dword [ebx + 0x100]
push 0x1d
push eax
mov eax, 1
lea ecx, [esp + 0x128]
call fcn.0042ed20
lea ecx, [esp + 0x154]
mov esi, eax
call fcn.00401c70
lea ecx, [esp + 0x170]
call fcn.00401c70
lea ecx, [esp + 0xe4]
call fcn.00401c70
lea ecx, [esp + 0x11c]
mov byte [esp + 0x338], 0
call fcn.00401c70
mov ecx, dword [esi + 0x94]
push str.Delete
add ecx, 0x8c
call fcn.004022b0
mov ecx, dword [esi + 0x98]
push str.Cancel
add ecx, 0x8c
call fcn.004022b0
lea ecx, [ebx - 0x88]
test ecx, ecx
je 0x4c94e2
lea eax, [ebx + 0xf8]
jmp 0x4c94e4
xor eax, eax
mov dword [esi + 0x8c], eax
lea ecx, [ebx - 0x88]
mov eax, esi
call fcn.004c9270
mov ecx, dword [ebx + 0x124]
mov eax, dword [ecx + 0xd4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x120]
push eax
lea eax, [esp + 0x1ac]
push eax
call edx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebx + 0x144]
mov byte [esp + 0x344], 6
call fcn.00401d10
lea ecx, [esp + 0x1a8]
call fcn.00401c70
jmp 0x4c9ad6
cmp dword [esp + 0x214], edi
je 0x4c957e
lea eax, [ebx - 0x88]
push eax
lea ecx, [esp + 0x190]
call fcn.004c82c0
mov byte [esp + 0x338], 7
mov ecx, dword [ebx + 0x100]
mov dword [esp + 0x18], 2
call fcn.00546e10
test al, al
mov byte [esp + 0x17], 1
jne 0x4c9583
mov byte [esp + 0x17], 0
mov dword [esp + 0x338], edi
test byte [esp + 0x18], 2
je 0x4c95a2
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x18c]
call fcn.00401c70
cmp byte [esp + 0x17], 0
je 0x4c9ad6
push 0x184
call fcn.00624a6a
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
mov byte [esp + 0x338], 8
je 0x4c95ff
push str.Rename_Replay
lea ecx, [esp + 0x104]
call fcn.00402130
push edi
lea ecx, [esp + 0x104]
push ecx
push 0x1e
mov byte [esp + 0x344], 9
or dword [esp + 0x24], 4
push esi
call fcn.004af1d0
mov esi, eax
jmp 0x4c9601
xor esi, esi
mov dword [esp + 0x338], edi
test byte [esp + 0x18], 4
je 0x4c961b
lea ecx, [esp + 0x100]
call fcn.00401c70
lea edx, [ebx - 0x88]
test edx, edx
je 0x4c962d
lea eax, [ebx + 0xf8]
jmp 0x4c962f
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esp + 0x200]
push eax
mov eax, esi
call fcn.004af3a0
push 0xffffffffffffffff
push edi
mov eax, 0x15e
mov edi, esi
call fcn.00428650
add esp, 8
lea ecx, [ebx - 0x88]
mov eax, esi
call fcn.004c9270
mov ebx, dword [ebx + 0x100]
mov edx, dword [ebx]
mov eax, dword [esi + 0x13c]
mov edx, dword [edx + 0x134]
push esi
push eax
mov ecx, ebx
call edx
jmp 0x4c9ad6
lea esi, [esp + 0xac]
call fcn.004e61a0
push 0x679aa4
push eax
lea eax, [esp + 0x1e8]
push eax
mov byte [esp + 0x344], 0xb
call fcn.0044cf70
add esp, 0xc
mov edi, 0x10
mov byte [esp + 0x338], 0xd
cmp dword [esp + 0xc4], edi
jb 0x4c96d2
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0062493b
add esp, 4
lea esi, [esp + 0x58]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.004e61a0
cmp dword [eax + 0x14], 0
sete byte [esp + 0x17]
cmp dword [esp + 0x70], edi
jb 0x4c9715
mov edx, dword [esp + 0x5c]
push edx
call fcn.0062493b
add esp, 4
cmp byte [esp + 0x17], 0
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
je 0x4c9822
lea esi, [esp + 0xc8]
call fcn.004e7040
push str.userdata_replays_
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x344], 0xe
call fcn.0044cf70
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
mov esi, eax
mov byte [esp + 0x33c], 0xf
call fcn.004e7770
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x344], 0x10
call fcn.00401d10
cmp dword [esp + 0xa8], edi
jb 0x4c97a9
mov edx, dword [esp + 0x94]
push edx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], esi
mov byte [esp + 0x94], 0
jb 0x4c97d6
mov eax, dword [esp + 0x40]
push eax
call fcn.0062493b
add esp, 4
mov byte [esp + 0x338], 0xd
cmp dword [esp + 0xe0], edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
jb 0x4c9808
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0062493b
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], esi
mov byte [esp + 0xcc], 0
cmp dword [esp + 0x1f8], edi
mov eax, dword [esp + 0x1e4]
jae 0x4c9839
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x24]
call fcn.00402130
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x33c], 0x11
call fcn.004e75f0
add esp, 4
mov byte [esp + 0x338], 0xd
cmp dword [esp + 0x38], edi
jb 0x4c9873
mov eax, dword [esp + 0x24]
push eax
call fcn.0062493b
add esp, 4
push str.kernel32.dll
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x220], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4c98c7
push str.GetSystemWindowsDirectoryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c98c0
push 0x105
lea ecx, [esp + 0x220]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0x21c], 0
jne 0x4c98e4
push 0x105
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x1c8]
call fcn.00402130
mov byte [esp + 0x338], 0x12
mov eax, dword [esp + 0x1d8]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4c9913
call fcn.0062492b
cmp dword [esp + 0x1dc], edi
mov eax, dword [esp + 0x1c8]
jae 0x4c992a
lea eax, [esp + 0x1c8]
cmp byte [eax + esi], 0x5c
je 0x4c9943
push 1
push 0x679af8
lea ecx, [esp + 0x1cc]
call fcn.00446130
push str.explorer.exe
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.0044cf70
add esp, 0xc
mov byte [esp + 0x338], 0x13
cmp dword [esp + 0x1f8], edi
mov ecx, dword [esp + 0x1e4]
jae 0x4c997c
lea ecx, [esp + 0x1e4]
cmp dword [eax + 0x18], edi
jb 0x4c9986
mov eax, dword [eax + 4]
jmp 0x4c9989
add eax, 4
push ecx
call fcn.004c9c40
add esp, 4
mov byte [esp + 0x338], 0x12
cmp dword [esp + 0x8c], edi
jb 0x4c99b0
mov eax, dword [esp + 0x78]
push eax
call fcn.0062493b
add esp, 4
mov ecx, dword [ebx + 0x130]
xor esi, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], esi
mov byte [esp + 0x78], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0x94]
push 1
call eax
mov ecx, dword [ebx + 0x130]
push 0xa
push str.Opening...
add ecx, 0x8c
call fcn.00402300
cmp dword [esp + 0x1dc], edi
jb 0x4c9a0c
mov ecx, dword [esp + 0x1c8]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x1f8], edi
mov dword [esp + 0x1dc], 0xf
mov dword [esp + 0x1d8], esi
mov byte [esp + 0x1c8], 0
jb 0x4c9adb
mov edx, dword [esp + 0x1e4]
push edx
call fcn.0062493b
add esp, 4
jmp 0x4c9adb
cmp esi, 0x3e8
jl 0x4c9ad6
cmp esi, 0x3e9
jg 0x4c9ad6
lea eax, [esp + 0x1e0]
call fcn.005653c0
cmp esi, 0x3e8
mov byte [esp + 0x338], 0x14
jne 0x4c9a94
mov al, byte [ebx + 0x119]
push edi
lea edi, [ebx - 0x88]
mov byte [ebx + 0x11a], al
call fcn.004c8c80
test al, al
je 0x4c9aca
lea eax, [ebx - 0x88]
call fcn.004c9180
cmp esi, 0x3e9
jne 0x4c9aca
mov eax, dword [ebx + 0x104]
cmp byte [eax + 0xde], 0
je 0x4c9aca
cmp byte [ebx + 0x118], 0
jne 0x4c9aca
mov ecx, dword [eax + 0xb0]
call fcn.0042d6f0
lea ecx, [esp + 0x1e0]
call fcn.005653e0
mov edi, 0x10
cmp dword [esp + 0x218], edi
jb 0x4c9af4
mov ecx, dword [esp + 0x204]
push ecx
call fcn.0062493b
add esp, 4
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4