Function at 0x4f8020
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x304c]
mov eax, 0x304c
call fcn.00502fa0
push 0xffffffffffffffff
push 0x521b6e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp + 0x3048], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 0x3054]
mov eax, esi
mov ebx, dword [ebp + 0x3058]
mov edx, ebx
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4f8096
test cx, cx
je 0x4f8092
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4f8096
add eax, 4
add edx, 4
test cx, cx
jne 0x4f8070
xor eax, eax
jmp 0x4f809b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f82a3
lea eax, [ebp + 0x2048]
mov byte [ebp - 0xd], 0
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp + 0x2048]
push eax
call fcn.00509bbd
add esp, 4
mov edi, eax
cmp word [ebp + 0x2048], 0x5c
je 0x4f8117
movzx ecx, word [ebx]
cmp ecx, 0x5c
je 0x4f8117
cmp word [esi], 0x5c
je 0x4f8117
push ecx
call fcn.00509bbd
movzx ecx, word [esi]
push ecx
mov dword [ebp - 0x14], eax
call fcn.00509bbd
add esp, 8
mov ecx, eax
cmp word [ebx + 2], 0x3a
mov eax, edi
jne 0x4f8106
mov eax, dword [ebp - 0x14]
cmp word [esi + 2], 0x3a
je 0x4f810f
mov ecx, edi
cmp eax, ecx
je 0x4f8117
mov byte [ebp - 0xd], 1
push esi
call fcn.00474160
test al, al
je 0x4f8174
lea ecx, [ebp + 0x1024]
call fcn.00472610
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1024]
push 1
push esi
call fcn.00472d30
test al, al
je 0x4f81d3
lea ecx, [ebp + 0x1024]
call fcn.00472780
test al, al
je 0x4f81d3
push esi
call fcn.00473d60
test al, al
je 0x4f81d3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.00472650
cmp byte [ebp - 0xd], 0
jne 0x4f818e
push esi
push ebx
call fcn.00474ad0
test al, al
sete al
test al, al
je 0x4f82a3
lea ecx, [ebp + 0x1024]
call fcn.00472610
mov dword [ebp - 4], 1
lea ecx, [ebp]
call fcn.00472610
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1024]
push 0
push ebx
call fcn.00472d30
test al, al
jne 0x4f81ef
push ebx
mov ecx, 0x58c304
call fcn.0046dc70
mov edi, 0xa
jmp 0x4f825d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.00472650
mov eax, 0xf
jmp 0x4f82a5
push 0x12
push esi
lea ecx, [ebp]
call fcn.00472990
test al, al
jne 0x4f8205
mov edi, 0xf
jmp 0x4f825d
push 0
mov ecx, 0x58c304
call fcn.0046def0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.004f7a60
lea ecx, [ebp + 0x1024]
mov edi, eax
call fcn.00472780
lea ecx, [ebp]
call fcn.00472780
push 1
mov ecx, 0x58c304
call fcn.0046def0
test edi, edi
je 0x4f827f
push esi
call fcn.00473d60
cmp edi, 0xa
jne 0x4f825d
mov edi, 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00472650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.00472650
mov eax, edi
jmp 0x4f82a5
push ebx
call fcn.00473d60
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00472650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.00472650
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3048]
xor ecx, ebp
call fcn.00502f8e
lea esp, [ebp + 0x304c]
pop ebp
ret 8