Function at 0x4fafa0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3054]
mov eax, 0x3054
call fcn.00507730
push 0xffffffffffffffff
push 0x53e33e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x3050], 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 + 0x305c]
mov eax, esi
mov ebx, dword [ebp + 0x3060]
mov edx, ebx
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4fb016
test cx, cx
je 0x4fb012
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4fb016
add eax, 4
add edx, 4
test cx, cx
jne 0x4faff0
xor eax, eax
jmp 0x4fb01b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4fb223
lea eax, [ebp + 0x2050]
mov byte [ebp - 0xd], 0
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp + 0x2050]
push eax
call fcn.0052592a
add esp, 4
mov edi, eax
cmp word [ebp + 0x2050], 0x5c
je 0x4fb097
movzx ecx, word [ebx]
cmp ecx, 0x5c
je 0x4fb097
cmp word [esi], 0x5c
je 0x4fb097
push ecx
call fcn.0052592a
movzx ecx, word [esi]
push ecx
mov dword [ebp - 0x14], eax
call fcn.0052592a
add esp, 8
mov ecx, eax
cmp word [ebx + 2], 0x3a
mov eax, edi
jne 0x4fb086
mov eax, dword [ebp - 0x14]
cmp word [esi + 2], 0x3a
je 0x4fb08f
mov ecx, edi
cmp eax, ecx
je 0x4fb097
mov byte [ebp - 0xd], 1
push esi
call fcn.004750c0
test al, al
je 0x4fb0f4
lea ecx, [ebp + 0x1028]
call fcn.00473520
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1028]
push 9
push esi
call fcn.00473c40
test al, al
je 0x4fb153
lea ecx, [ebp + 0x1028]
call fcn.00473690
test al, al
je 0x4fb153
push esi
call fcn.00474cc0
test al, al
je 0x4fb153
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1028]
call fcn.00473560
cmp byte [ebp - 0xd], 0
jne 0x4fb10e
push esi
push ebx
call fcn.00475a30
test al, al
sete al
test al, al
je 0x4fb223
lea ecx, [ebp + 0x1028]
call fcn.00473520
mov dword [ebp - 4], 1
lea ecx, [ebp]
call fcn.00473520
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1028]
push 0
push ebx
call fcn.00473c40
test al, al
jne 0x4fb16f
push ebx
mov ecx, 0x5b77e4
call fcn.0046e680
mov edi, 0xa
jmp 0x4fb1dd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1028]
call fcn.00473560
mov eax, 0xf
jmp 0x4fb225
push 0x12
push esi
lea ecx, [ebp]
call fcn.004738a0
test al, al
jne 0x4fb185
mov edi, 0xf
jmp 0x4fb1dd
push 0
mov ecx, 0x5b77e4
call fcn.0046e900
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x1028]
push eax
call fcn.004fa9a0
lea ecx, [ebp + 0x1028]
mov edi, eax
call fcn.00473690
lea ecx, [ebp]
call fcn.00473690
push 1
mov ecx, 0x5b77e4
call fcn.0046e900
test edi, edi
je 0x4fb1ff
push esi
call fcn.00474cc0
cmp edi, 0xa
jne 0x4fb1dd
mov edi, 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00473560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1028]
call fcn.00473560
mov eax, edi
jmp 0x4fb225
push ebx
call fcn.00474cc0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00473560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1028]
call fcn.00473560
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 + 0x3050]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x3054]
pop ebp
ret 8