Function at 0x4c2410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
call fcn.004031a0
mov edi, dword [esp + 0x42c]
push str.data_
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
call fcn.0058e5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c2444
mov esi, edi
jmp 0x4c2447
add esi, 6
mov eax, dword [esp + 0x434]
mov edi, 1
cmp eax, edi
jne 0x4c2484
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2460
sub eax, edx
dec eax
test eax, eax
jl 0x4c2484
mov edi, edi
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x4c247d
cmp cl, 0x2f
jne 0x4c2481
mov byte [eax + esi], 0x5c
dec eax
jns 0x4c2470
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c2490
sub eax, edx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4c24bb
mov al, byte [ecx + esi]
cmp al, 0x5c
je 0x4c24b4
cmp al, 0x2f
je 0x4c24b4
cmp al, 0x3a
je 0x4c24b4
dec ecx
jns 0x4c24a0
jmp 0x4c24bb
inc ecx
mov dword [esp + 0x10], ecx
mov ebx, ecx
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x220]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c24d8
sub eax, edx
mov dword [esp + 0x14], edi
mov ebp, esi
lea ecx, [esp + 0x220]
xor edi, edi
mov dword [esp + 0x1c], eax
sub ebp, ecx
jmp 0x4c2500
mov eax, dword [esp + 0x1c]
lea esp, [esp]
cmp edi, eax
jge 0x4c2544
lea ebx, [esp + edi + 0x220]
movsx edx, byte [ebx + ebp]
push edx
call fcn.0058e518
movsx ecx, byte [ebx]
push ecx
mov dword [esp + 0x20], eax
call fcn.0058e518
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, eax
je 0x4c2535
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
inc edi
test eax, eax
jne 0x4c24f8
jmp 0x4c2557
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4c2557
cmp byte [eax + esi], 0x5c
jne 0x4c2553
inc eax
add esi, eax
sub ebx, eax
push 0x3a
push esi
call fcn.0058cb50
add esp, 8
test eax, eax
je 0x4c256d
sub eax, esi
inc eax
add esi, eax
sub ebx, eax
mov eax, dword [esp + 0x434]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov ebp, 1
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
mov byte [esp + ebx + 0x120], 0
jne 0x4c25c3
mov eax, dword [esp + 0x42c]
push eax
call fcn.004c21f0
push eax
push 0x5daa0e
lea ecx, [esp + 0x2c]
push 0x5ec010
push ecx
call fcn.0058c396
add esp, 0x14
jmp 0x4c262b
test ebx, ebx
jne 0x4c25f5
mov edx, dword [esp + 0x42c]
push edx
call fcn.004c21f0
push eax
push 0x5c
push str.leveldata
push 0x5daa0e
lea eax, [esp + 0x34]
push str._s_s_c_s
push eax
call fcn.0058c396
add esp, 0x1c
jmp 0x4c262b
mov ecx, dword [esp + 0x42c]
push ecx
call fcn.004c21f0
push eax
push 0x5c
lea edx, [esp + 0x12c]
push edx
push 0x5c
push str.leveldata
push 0x5daa0e
lea eax, [esp + 0x3c]
push str._s_s_c_s_c_s
push eax
call fcn.0058c396
add esp, 0x24
xor edi, edi
lea ecx, [ecx]
cmp dword [esp + 0x430], ebp
jne 0x4c266b
lea ecx, [esp + 0x20]
push 0x5ebfe4
push ecx
call fcn.0058c6c3
mov esi, eax
add esp, 8
test esi, esi
je 0x4c2683
push 2
push 0
push esi
call fcn.0058dd2d
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
lea edx, [esp + 0x20]
push 0x5dedf8
push edx
call fcn.0058c6c3
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c265e
lea eax, [esp + 0x120]
push eax
push 0x5c
push str.leveldata
push 0x5daa0e
lea ecx, [esp + 0x334]
push str._s_s_c_s
push ecx
call fcn.0058c396
lea edx, [esp + 0x33c]
push edx
call fcn.004c2390
add esp, 0x1c
inc edi
cmp edi, 2
jl 0x4c2630
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret