Function at 0x4c5980
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50898b
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp + 0xc]
test al, al
je 0x4c59b4
call fcn.004c5d40
test al, al
je 0x4c5c15
mov eax, dword [esp + 0x438]
test eax, eax
je 0x4c5c15
mov al, byte [0x7ef008]
test al, al
je 0x4c5c15
mov al, byte [esp + 0x1f]
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call fcn.004c6c50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x428], 0
cmp eax, 0x400
jb 0x4c5a10
mov ecx, dword [0x7716d8]
push ecx
push 0x400
lea ecx, [esp + 0x14]
call fcn.004c6390
jmp 0x4c5a23
mov edx, 0x400
push 0
sub edx, eax
lea ecx, [esp + 0x10]
push edx
call fcn.004c60c0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5a55
mov eax, 0x7716d4
mov edi, dword [esp + 0x430]
lea ecx, [esp + 0x20]
push edi
push ecx
push str._s_s
push eax
call fcn.004e8c00
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x4c5a7d
mov eax, 0x7716d4
push 0x7bfa38
push eax
call fcn.004e7ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x4c5b21
mov edx, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
push esi
push edx
push 1
push eax
call fcn.004e7ff2
push esi
call fcn.004e799d
add esp, 0x14
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5ac3
mov eax, 0x7716d4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x4c5bf1
mov dword [ebp + 4], 1
mov edx, dword [0x7716d8]
push edx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp + 0x10]
call fcn.004c6190
mov ecx, dword [esp + 0x10]
mov byte [ebp + 0xc], 1
test ecx, ecx
je 0x4c5bed
mov al, byte [ecx - 1]
test al, al
je 0x4c5be3
cmp al, 0xff
je 0x4c5be3
dec al
mov byte [ecx - 1], al
mov al, 1
jmp 0x4c5c17
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5b2e
mov eax, 0x7716d4
push 0
push eax
call fcn.004e923d
add esp, 8
test eax, eax
je 0x4c5ab6
lea ecx, [esp + 0x20]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5b5e
mov eax, 0x7716d4
lea edx, [esp + 0x20]
push edi
push edx
push str._s_s
push eax
call fcn.004e8c00
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x4c5b7f
mov eax, 0x7716d4
push 0x7bfa38
push eax
call fcn.004e7ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x4c5bab
mov eax, dword [esp + 0x438]
mov ecx, dword [esp + 0x434]
push esi
push eax
push 1
push ecx
jmp 0x4c5aa8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c5bb8
mov eax, 0x7716d4
push 0
push eax
call fcn.004e923d
add esp, 8
test eax, eax
je 0x4c5ab6
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004c6c50
jmp 0x4c5c15
dec ecx
push ecx
call fcn.004f9e9b
add esp, 4
mov al, 1
jmp 0x4c5c17
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c5c15
mov al, byte [ecx - 1]
test al, al
je 0x4c5c0b
cmp al, 0xff
je 0x4c5c0b
dec al
mov byte [ecx - 1], al
jmp 0x4c5c15
dec ecx
push ecx
call fcn.004f9e9b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x420
ret 0xc