Function at 0x4edb50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x304c]
mov eax, 0x304c
call fcn.004f8350
push 0xffffffffffffffff
push 0x5166ce
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x544354]
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 0x4edbc6
test cx, cx
je 0x4edbc2
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4edbc6
add eax, 4
add edx, 4
test cx, cx
jne 0x4edba0
xor eax, eax
jmp 0x4edbcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4eddd3
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.004fecc4
add esp, 4
mov edi, eax
cmp word [ebp + 0x2048], 0x5c
je 0x4edc47
movzx ecx, word [ebx]
cmp ecx, 0x5c
je 0x4edc47
cmp word [esi], 0x5c
je 0x4edc47
push ecx
call fcn.004fecc4
movzx ecx, word [esi]
push ecx
mov dword [ebp - 0x14], eax
call fcn.004fecc4
add esp, 8
mov ecx, eax
cmp word [ebx + 2], 0x3a
mov eax, edi
jne 0x4edc36
mov eax, dword [ebp - 0x14]
cmp word [esi + 2], 0x3a
je 0x4edc3f
mov ecx, edi
cmp eax, ecx
je 0x4edc47
mov byte [ebp - 0xd], 1
push esi
call fcn.0046cad0
test al, al
je 0x4edca4
lea ecx, [ebp + 0x1024]
call fcn.0046b040
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1024]
push 1
push esi
call fcn.0046b720
test al, al
je 0x4edd03
lea ecx, [ebp + 0x1024]
call fcn.0046b1d0
test al, al
je 0x4edd03
push esi
call fcn.0046c6d0
test al, al
je 0x4edd03
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.0046b080
cmp byte [ebp - 0xd], 0
jne 0x4edcbe
push esi
push ebx
call fcn.0046d450
test al, al
sete al
test al, al
je 0x4eddd3
lea ecx, [ebp + 0x1024]
call fcn.0046b040
mov dword [ebp - 4], 1
lea ecx, [ebp]
call fcn.0046b040
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1024]
push 0
push ebx
call fcn.0046b720
test al, al
jne 0x4edd1f
push ebx
mov ecx, 0x57f41c
call fcn.004667d0
mov edi, 0xa
jmp 0x4edd8d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.0046b080
mov eax, 0xf
jmp 0x4eddd5
push 0x12
push esi
lea ecx, [ebp]
call fcn.0046b3d0
test al, al
jne 0x4edd35
mov edi, 0xf
jmp 0x4edd8d
push 0
mov ecx, 0x57f41c
call fcn.00466a50
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.004ed5b0
lea ecx, [ebp + 0x1024]
mov edi, eax
call fcn.0046b1d0
lea ecx, [ebp]
call fcn.0046b1d0
push 1
mov ecx, 0x57f41c
call fcn.00466a50
test edi, edi
je 0x4eddaf
push esi
call fcn.0046c6d0
cmp edi, 0xa
jne 0x4edd8d
mov edi, 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0046b080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.0046b080
mov eax, edi
jmp 0x4eddd5
push ebx
call fcn.0046c6d0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0046b080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.0046b080
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.004f833c
lea esp, [ebp + 0x304c]
pop ebp
ret 8