Function at 0x42817d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42840b
call fcn.004108ac
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 0x4281da
test edi, edi
je 0x4281da
mov ecx, dword [ebp + 8]
push 0
mov eax, 0x100
mov ebx, dword [ecx + 4]
push eax
mov ecx, esi
push eax
call fcn.0042065f
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004206b4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
jne 0x428214
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x4281f9
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 0x428202
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [eax], esi
jle 0x42824c
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 0x42822b
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.004201c1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004201c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
cmp dword [ecx], 0
jle 0x4283b8
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.00428075
test eax, eax
je 0x4283b8
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov eax, dword [esi - 8]
add eax, eax
push eax
call fcn.0042065f
cmp byte [esi], 0
je 0x428311
cmp byte [esi], 0x26
jne 0x4282f4
mov byte [eax], 0x26
inc eax
mov dl, byte [esi]
movzx ecx, dl
test byte [ecx + 0x448359], 4
je 0x428306
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 0x4282eb
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.004206b4
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.0042038e
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
call fcn.00420523
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.004283fb
mov byte [ebp - 4], 1
call fcn.004283f3
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jg 0x4282b2
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.00428403
mov dword [ebp - 4], 0xffffffff
call fcn.00428415
jmp 0x428202