Function at 0x41db8c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41de1a
call fcn.0040a088
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 0x41dbe9
test edi, edi
je 0x41dbe9
mov ecx, dword [ebp + 8]
push 0
mov eax, 0x100
mov ebx, dword [ecx + 4]
push eax
mov ecx, esi
push eax
call fcn.0041cf70
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041cfc5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
jne 0x41dc23
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x41dc08
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 0x41dc11
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [eax], esi
jle 0x41dc5b
mov ecx, dword [ebp + 8]
push 0
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov edx, dword [ecx]
push eax
inc esi
push dword [edx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], esi
jg 0x41dc3a
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.0041ca88
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041ca88
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
cmp dword [ecx], 0
jle 0x41ddc7
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.0041da84
test eax, eax
je 0x41ddc7
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov eax, dword [esi - 8]
add eax, eax
push eax
call fcn.0041cf70
cmp byte [esi], 0
je 0x41dd20
cmp byte [esi], 0x26
jne 0x41dd03
mov byte [eax], 0x26
inc eax
mov dl, byte [esi]
movzx ecx, dl
test byte [ecx + 0x442411], 4
je 0x41dd15
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 0x41dcfa
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.0041cfc5
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.0041cc5b
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
call fcn.0041cd9f
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.0041de0a
mov byte [ebp - 4], 1
call fcn.0041de02
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jg 0x41dcc1
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.0041de12
mov dword [ebp - 4], 0xffffffff
call fcn.0041de24
jmp 0x41dc11