Function at 0x42173f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4219cd
call fcn.0040ee70
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 0x42179c
test edi, edi
je 0x42179c
mov ecx, dword [ebp + 8]
push 0
mov eax, 0x100
mov ebx, dword [ecx + 4]
push eax
mov ecx, esi
push eax
call fcn.0041a5a7
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041a5fc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
jne 0x4217d6
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x4217bb
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 0x4217c4
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [eax], esi
jle 0x42180e
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 0x4217ed
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.0041a074
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041a074
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
cmp dword [ecx], 0
jle 0x42197a
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.00421637
test eax, eax
je 0x42197a
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov eax, dword [esi - 8]
add eax, eax
push eax
call fcn.0041a5a7
cmp byte [esi], 0
je 0x4218d3
cmp byte [esi], 0x26
jne 0x4218b6
mov byte [eax], 0x26
inc eax
mov dl, byte [esi]
movzx ecx, dl
test byte [ecx + 0x439629], 4
je 0x4218c8
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 0x4218ad
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov byte [eax], 0
call fcn.0041a5fc
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.0041a241
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
call fcn.0041a3d6
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.004219bd
mov byte [ebp - 4], 1
call fcn.004219b5
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
jg 0x421874
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.004219c5
mov dword [ebp - 4], 0xffffffff
call fcn.004219d7
jmp 0x4217c4