Function at 0x4e1c60
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x304c]
mov eax, 0x304c
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x509d2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x528af4]
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 0x4e1cd6
test cx, cx
je 0x4e1cd2
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4e1cd6
add eax, 4
add edx, 4
test cx, cx
jne 0x4e1cb0
xor eax, eax
jmp 0x4e1cdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e1ee3
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.004f292e
add esp, 4
mov edi, eax
cmp word [ebp + 0x2048], 0x5c
je 0x4e1d57
movzx ecx, word [ebx]
cmp ecx, 0x5c
je 0x4e1d57
cmp word [esi], 0x5c
je 0x4e1d57
push ecx
call fcn.004f292e
movzx ecx, word [esi]
push ecx
mov dword [ebp - 0x14], eax
call fcn.004f292e
add esp, 8
mov ecx, eax
cmp word [ebx + 2], 0x3a
mov eax, edi
jne 0x4e1d46
mov eax, dword [ebp - 0x14]
cmp word [esi + 2], 0x3a
je 0x4e1d4f
mov ecx, edi
cmp eax, ecx
je 0x4e1d57
mov byte [ebp - 0xd], 1
push esi
call fcn.00469360
test al, al
je 0x4e1db4
lea ecx, [ebp + 0x1024]
call fcn.00467980
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1024]
push 1
push esi
call fcn.00468010
test al, al
je 0x4e1e13
lea ecx, [ebp + 0x1024]
call fcn.00467b10
test al, al
je 0x4e1e13
push esi
call fcn.00468f10
test al, al
je 0x4e1e13
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.004679c0
cmp byte [ebp - 0xd], 0
jne 0x4e1dce
push esi
push ebx
call fcn.00469ca0
test al, al
sete al
test al, al
je 0x4e1ee3
lea ecx, [ebp + 0x1024]
call fcn.00467980
mov dword [ebp - 4], 1
lea ecx, [ebp]
call fcn.00467980
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1024]
push 0
push ebx
call fcn.00468010
test al, al
jne 0x4e1e2f
push ebx
mov ecx, 0x56df60
call fcn.00462f70
mov edi, 0xa
jmp 0x4e1e9d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.004679c0
mov eax, 0xf
jmp 0x4e1ee5
push 0x12
push esi
lea ecx, [ebp]
call fcn.00467ce0
test al, al
jne 0x4e1e45
mov edi, 0xf
jmp 0x4e1e9d
push 0
mov ecx, 0x56df60
call fcn.00463310
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.004e1650
lea ecx, [ebp + 0x1024]
mov edi, eax
call fcn.00467b10
lea ecx, [ebp]
call fcn.00467b10
push 1
mov ecx, 0x56df60
call fcn.00463310
test edi, edi
je 0x4e1ebf
push esi
call fcn.00468f10
cmp edi, 0xa
jne 0x4e1e9d
mov edi, 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004679c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.004679c0
mov eax, edi
jmp 0x4e1ee5
push ebx
call fcn.00468f10
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004679c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1024]
call fcn.004679c0
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.004ebbd8
lea esp, [ebp + 0x304c]
pop ebp
ret 8