Function at 0x41f745
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41f9d3
call fcn.00406b68
sub esp, 0x134
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
add ecx, 0xc
push edi
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx]
add esi, 0x1c
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x41f7a2
test edi, edi
je 0x41f7a2
mov ecx, dword [ebp + 8]
push 0
mov eax, 0x100
mov ebx, dword [ecx + 4]
push eax
mov ecx, esi
push eax
call fcn.0041d983
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041d9d8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
jne 0x41f7dc
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x41f7c1
push eax
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
call dword [ebx + 0xc]
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41f7ca
xor edi, edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [eax], edi
jle 0x41f814
mov ecx, dword [ebp + 8]
push 0
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
add eax, edi
mov edx, dword [ecx]
push eax
inc edi
push dword [edx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], edi
jg 0x41f7f3
lea eax, [ebp - 0x140]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov byte [ebp + eax - 0x140], 0x5c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov byte [ebp + eax - 0x140], 0
call fcn.0041d4e5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041d4e5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
cmp dword [ecx], 0
jle 0x41f980
push 1
lea ecx, [ebp - 0x140]
push dword [ebp - 0x28]
push ecx
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call fcn.0041f63d
test eax, eax
je 0x41f980
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov eax, dword [esi - 8]
add eax, eax
push eax
call fcn.0041d983
cmp byte [esi], 0
je 0x41f8d9
cmp byte [esi], 0x26
jne 0x41f8bc
mov byte [eax], 0x26
inc eax
mov dl, byte [esi]
movzx ecx, dl
test byte [ecx + 0x441549], 4
je 0x41f8ce
inc esi
mov byte [eax], dl
inc eax
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
cmp byte [esi], 0
jne 0x41f8b3
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.0041d9d8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov ebx, 0xa
mov ecx, dword [eax + 0x14]
lea eax, [ecx + edx + 1]
sub edx, edx
div ebx
push edx
lea eax, [ebp - 0x3c]
push str._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
push edx
lea eax, [edi + 1]
mov dword [ecx + 4], eax
lea eax, [esi + 1]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d6b2
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
call fcn.0041d847
push dword [eax]
push edi
push 0x400
mov eax, dword [ebp - 0x10]
push esi
mov ecx, dword [eax]
mov byte [ebp - 4], 3
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
mov byte [ebp - 4], 2
call fcn.0041f9c3
mov byte [ebp - 4], 1
call fcn.0041f9bb
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jg 0x41f87a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
dec dword [ecx + 8]
push dword [edx + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [ecx + 0x18], 1
mov dword [ecx + 0x20], eax
call fcn.0041f9cb
mov dword [ebp - 4], 0xffffffff
call fcn.0041f9dd
jmp 0x41f7ca