Function at 0x4e6b62
Capabilities:
Get common file path

Disassembly:
push 0x130
mov eax, 0x677573
call fcn.005f14c3
mov edi, ecx
mov dword [ebp - 0x130], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4e6e19
mov ecx, dword [ebx + 0xc]
lea esi, [edi + 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4e6ba1
test ecx, ecx
je 0x4e6ba1
push 0
push esi
push dword [ebx + 4]
call fcn.00451b7b
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4e6be0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x4e6bc6
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x68dd90]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x68dd90]
mov ecx, ebx
call esi
call fcn.005f1472
ret 4
cmp dword [ebx + 0xc], 0
je 0x4e6bd8
xor esi, esi
cmp dword [edi + 4], esi
jle 0x4e6c07
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add eax, esi
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc esi
cmp esi, dword [edi + 4]
jl 0x4e6bed
lea eax, [ebp - 0x120]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4e6bd8
cmp eax, esi
jae 0x4e6bd8
lea eax, [ebp - 0x120]
push eax
call fcn.0060fe00
pop ecx
mov byte [ebp + eax - 0x120], 0x5c
inc eax
mov dword [ebp - 0x134], eax
cmp eax, esi
jae 0x4e6e14
lea ecx, [ebp - 0x12c]
mov byte [ebp + eax - 0x120], 0
call fcn.004026b1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004026b1
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], ecx
cmp dword [edi + 4], ecx
jle 0x4e6dda
mov eax, dword [edi]
push 1
push dword [ebp - 0x134]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x120]
push eax
push ecx
lea eax, [ebp - 0x12c]
mov ecx, esi
push eax
call dword [0x68dd90]
mov ecx, edi
call esi
test eax, eax
je 0x4e6dda
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
call fcn.004061cf
mov esi, eax
jmp 0x4e6ce9
cmp al, 0x26
jne 0x4e6ccf
mov byte [esi], al
inc esi
movsx eax, byte [edi]
push eax
call fcn.00642689
pop ecx
test eax, eax
je 0x4e6ce3
mov al, byte [edi]
inc edi
mov byte [esi], al
inc esi
mov al, byte [edi]
inc edi
mov byte [esi], al
inc esi
mov al, byte [edi]
test al, al
jne 0x4e6cc8
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
mov byte [esi], al
call fcn.0040645e
mov ecx, dword [ebp - 0x130]
push 0xa
mov eax, dword [ecx + 0x14]
add eax, dword [ebp - 0x128]
and eax, 0xf
inc eax
pop ecx
cmp eax, ecx
jbe 0x4e6d20
push eax
push 0x6a5e80
jmp 0x4e6d3f
jne 0x4e6d39
push str.10
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0063da98
push eax
call fcn.00403538
jmp 0x4e6d49
push eax
push 0x6a5e8c
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0043a87c
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x13c]
push eax
call fcn.004025f0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004030e5
mov edx, dword [ebx + 4]
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, dword [eax]
push esi
push edx
lea eax, [edx + 1]
mov dword [ebx + 4], eax
lea eax, [ecx + 1]
push 0x400
push ecx
mov dword [ebx + 8], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
mov ecx, dword [ebp - 0x138]
lea ecx, [ecx - 0x10]
call fcn.00406421
mov ecx, dword [ebp - 0x13c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00406421
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x130]
inc ecx
mov dword [ebp - 0x128], ecx
cmp ecx, dword [edi + 4]
jl 0x4e6c7d
mov eax, dword [ebx + 0xc]
dec dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x124]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 1
lea ecx, [ecx - 0x10]
call fcn.00406421
mov ecx, dword [ebp - 0x12c]
lea ecx, [ecx - 0x10]
call fcn.00406421
jmp 0x4e6bd8
call fcn.005f1c58
call fcn.0041ee2b
int3