Function at 0x453ecc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x328]
push eax
push 0x70
push 0x64
push dword [0x47c2ec]
call fcn.0043c164
test eax, eax
jne 0x45413e
push esi
push edi
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test ebx, ebx
je 0x453f8e
xor edi, edi
lea ecx, [esi + 0x11a]
and dword [ebp - 0x320], edi
mov dword [ebp - 0x324], ecx
test edi, edi
jne 0x453f8e
push ebx
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
pop ecx
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
mov eax, dword [ebp - 0x320]
cmove edi, ecx
mov ecx, dword [ebp - 0x324]
inc eax
add ecx, 0x106
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x324], ecx
cmp eax, 4
jl 0x453f29
test edi, edi
jne 0x453f8e
sub dword [esi + 0x10], 1
jns 0x453f74
mov dword [esi + 0x10], 3
imul eax, dword [esi + 0x10], 0x106
push ebx
push 0x106
add eax, 0x11a
add eax, esi
push eax
call fcn.00442b42
push dword [0x49cda0]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0x71
pop ebx
cmp eax, 9
jne 0x453fb9
push 0
push 0
push 0x800
push dword [0x49cda0]
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x453fd0
mov edi, ebx
push 0
push edi
push dword [0x49cda0]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc edi
cmp edi, 0x74
jle 0x453fbb
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4786ac
push 0x106
lea eax, [ebp - 0x214]
push eax
call fcn.0041c82c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 0x10]
mov edx, eax
mov dword [ebp - 0x324], edx
imul ecx, edi, 0x106
lea eax, [esi + 0x11a]
add eax, ecx
mov dword [ebp - 0x320], eax
cmp byte [eax], 0
je 0x454112
push edx
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x320]
cmove ecx, dword [ebp - 0x324]
add eax, ecx
push eax
push 0x106
lea eax, [ebp - 0x10c]
push eax
call fcn.00442b42
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x28
jle 0x454087
push 0x106
lea eax, [ebp - 0x10c]
push eax
call fcn.00458c2e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov dword [ebp - 0x320], eax
xor edx, edx
test eax, eax
jle 0x4540d6
cmp ecx, 0x104
jae 0x4540ce
mov al, byte [ebp + edx - 0x10c]
mov byte [ebp + ecx - 0x31c], al
cmp al, 0x26
jne 0x4540c4
inc ecx
mov byte [ebp + ecx - 0x31c], al
inc ecx
inc edx
cmp edx, dword [ebp - 0x320]
jl 0x4540a2
cmp ecx, 0x106
jae 0x45414f
lea eax, [ebp - 0x31c]
mov byte [ebp + ecx - 0x31c], 0
push eax
push 0x106
lea eax, [ebp - 0x10c]
push eax
call fcn.00442b42
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0
push dword [0x49cda0]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edx, dword [ebp - 0x324]
inc edi
xor eax, eax
cmp edi, 4
cmovge edi, eax
inc ebx
cmp ebx, 0x74
jle 0x454010
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x328]
call fcn.0043d6c9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 4
call fcn.004761b0
int3