Function at 0x40cdff
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [0x46e6bc], ebx
push esi
push edi
jne 0x40d2b8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x194]
cmp eax, ebx
jne 0x40d1ea
lea edi, [esi + 0x150]
test byte [edi + 0x84], 2
jne 0x40ce64
push 0xd1
push dword [0x46dca4]
call dword [sym.imp.USER32.dll_LoadMenuW]
cmp eax, ebx
je 0x40ce64
mov ebx, edi
call fcn.0041085c
xor ebx, ebx
mov eax, dword [esi + 0x194]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 8], eax
mov eax, dword [0x46dd38]
mov ecx, 0x46dd38
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
movzx eax, word [0x46e980]
push eax
push 0x36
lea eax, [ebp - 4]
call fcn.0040ef5c
push ebx
lea esi, [ebp - 4]
call fcn.0041d036
mov ebx, dword [sym.imp.USER32.dll_ModifyMenuW]
push eax
mov eax, 0x8016
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0x7c
mov eax, esi
call fcn.0040ef5c
push 0x4661c4
mov eax, esi
push eax
call fcn.0040ef36
push 0
call fcn.0041d036
push eax
mov eax, 0x801c
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0x17
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8018
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0x5c
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8011
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0xf6
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8012
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0xf8
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8017
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0xf9
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8013
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0xf5
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8014
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 0xf7
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x800e
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
movzx eax, word [0x46e980]
push eax
push 9
mov eax, esi
call fcn.0040ef5c
push 0
call fcn.0041d036
push eax
mov eax, 0x8015
push eax
push 0x10
push eax
push dword [ebp - 8]
call ebx
push 0x10
pop eax
mov esi, edi
call fcn.0040f19f
call fcn.0041d60f
test eax, eax
je 0x40d123
mov eax, dword [edi + 0x48]
test eax, eax
je 0x40d069
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test eax, eax
jne 0x40d070
push dword [edi + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
and dword [edi + 0x48], 0
or byte [edi + 0x85], 0x20
push 0x8016
push ecx
mov eax, esp
push edi
mov dword [eax], 0xdd
call fcn.0040f1ec
push 0x801c
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe9
call fcn.0040f1ec
push 0x8018
push ecx
mov eax, esp
push edi
mov dword [eax], 0xd8
call fcn.0040f1ec
push 0x8011
push ecx
mov eax, esp
push edi
mov dword [eax], 0xd9
call fcn.0040f1ec
push 0x8012
push ecx
mov eax, esp
push edi
mov dword [eax], 0xd7
call fcn.0040f1ec
push 0x8013
push ecx
mov eax, esp
push edi
mov dword [eax], 0xde
call fcn.0040f1ec
push 0x8014
push ecx
mov eax, esp
push edi
mov dword [eax], 0xdc
call fcn.0040f1ec
push 0x8017
push ecx
mov eax, esp
push edi
mov dword [eax], 0xd6
call fcn.0040f1ec
push 0x8015
push ecx
mov eax, esp
mov dword [eax], 0xd5
jmp 0x40d1d1
push 0x8016
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe6
call fcn.0040f1ec
push 0x801c
push ecx
mov eax, esp
push edi
mov dword [eax], 0xea
call fcn.0040f1ec
push 0x8018
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe5
call fcn.0040f1ec
push 0x8011
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe7
call fcn.0040f1ec
push 0x8012
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe4
call fcn.0040f1ec
push 0x8013
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe1
call fcn.0040f1ec
push 0x8014
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe8
call fcn.0040f1ec
push 0x8017
push ecx
mov eax, esp
push edi
mov dword [eax], 0xe3
call fcn.0040f1ec
push 0x8015
push ecx
mov eax, esp
mov dword [eax], 0xe2
push edi
call fcn.0040f1ec
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0041ad22
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
jmp 0x40d1f4
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push 0x4653f4
lea eax, [ebp + 8]
call fcn.0041c812
push 0x4653a4
lea eax, [ebp + 8]
push 0x46e978
push eax
mov eax, 0x46e974
lea ecx, [ebp - 0xc]
call fcn.0040efa7
pop ecx
lea ecx, [ebp - 4]
call fcn.0040efa7
pop ecx
lea ecx, [ebp - 8]
call fcn.0040efd9
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0041ad22
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0041ad22
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0041ad22
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0041ad22
test bl, bl
je 0x40d280
xor ebx, ebx
push ebx
push 0x801c
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x40d282
xor ebx, ebx
cmp dword [esi + 0x224], ebx
je 0x40d28e
push 8
jmp 0x40d28f
push ebx
push 0x8018
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push dword [ebp - 0x10]
lea eax, [esi + 0x150]
push dword [ebp - 0x14]
push ebx
push edi
call fcn.0041c718
pop edi
pop esi
pop ebx
leave
ret 4