Function at 0x42e6e7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4440bc
call fcn.004081a4
sub esp, 0x124
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0xc]
lea ebx, [edi + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ecx - 8], 0
jne 0x42e744
test eax, eax
je 0x42e744
mov eax, dword [esi + 4]
push 0
mov dword [ebp + 8], eax
mov eax, 0x100
push eax
push eax
mov ecx, ebx
call fcn.0042c624
push eax
mov eax, dword [ebp - 0x18]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0042c673
mov eax, dword [edi + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx - 8], eax
jne 0x42e76c
mov ebx, dword [ebx]
cmp dword [ebx - 8], eax
je 0x42e75f
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
jmp 0x42e917
cmp dword [esi + 0xc], eax
je 0x42e917
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x42e796
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
add eax, ebx
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x42e77c
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x4519f4]
mov byte [ebp + eax - 0x130], 0x5c
and byte [ebp + eax - 0x12f], 0
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
cmp dword [edi + 4], ebx
mov byte [ebp - 4], 1
jle 0x42e8e6
jmp 0x42e7ec
mov eax, dword [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0042e5e1
test eax, eax
je 0x42e8e6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [eax - 8]
add eax, eax
push eax
call fcn.0042c624
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x42e84f
cmp dl, 0x26
jne 0x42e82f
mov byte [eax], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
movzx edx, dl
test byte [edx + 0x458061], 4
je 0x42e847
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc ecx
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
jmp 0x42e821
and byte [eax], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c673
mov eax, dword [edi + 0x14]
push 0xa
xor edx, edx
pop ecx
lea eax, [eax + ebx + 1]
div ecx
lea eax, [ebp - 0x2c]
push edx
push str._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0042c262
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c423
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push dword [ebp + 8]
lea edx, [ecx + 1]
mov dword [esi + 8], edx
lea edx, [eax + 1]
push eax
mov eax, dword [esi + 0xc]
push 0x400
push ecx
mov dword [esi + 4], edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
lea ecx, [ebp - 0x1c]
call fcn.0042c1f4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0042c1f4
inc ebx
cmp ebx, dword [edi + 4]
jl 0x42e7e9
mov eax, dword [esi + 0xc]
dec dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 1
call fcn.0042c1f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042c1f4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4