Function at 0x4064ec
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44636c
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x310]
push ebx
push ebx
push 0x1032
push eax
call edi
cmp eax, 1
jb 0x406877
lea ecx, [esp + 0x24]
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebp, vtable.CMenu.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x138], ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [esp + 0x18]
call fcn.0043e6c3
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov byte [esp + 0x138], 1
call fcn.004424f7
mov eax, dword [eax + 0xc]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x20]
call fcn.0043e6c3
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0043e690
mov ebp, eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
jle 0x4065f3
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov ecx, dword [ebp + 4]
mov ebx, eax
push 0
lea eax, [esp + 0x34]
push 0x100
push eax
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetMenuStringA]
mov edx, dword [ebp + 4]
push 0
push ebx
push edx
call dword [sym.imp.USER32.dll_GetMenuState]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406599
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ebx
push esi
push eax
push ecx
push 0x100
lea ecx, [esp + 0x28]
call fcn.0043a9c2
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.0043e71a
lea eax, [ebp - 0x8003]
cmp eax, 5
ja case.default.0x406627
jmp dword [eax*4 + 0x406890]
mov edx, dword [esi + 0x310]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
call edi
lea ebx, [eax + 1]
test ebx, ebx
je case.default.0x406627
mov eax, dword [esi + 0x310]
lea ebp, [ebx - 1]
push 2
push ebp
push 0x100c
push eax
call edi
push 2
lea ecx, [esp + 0x14]
push ebp
push ecx
lea ecx, [esi + 0x2f4]
lea ebx, [eax + 1]
call fcn.00438b77
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x406696
mov edx, dword [esi + 0x1c]
push 5
push 0
push 0
push eax
push 0x45453c
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
call fcn.0043d0ed
test ebx, ebx
jne 0x40664b
jmp case.default.0x406627
mov eax, dword [esi + 0x310]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
lea ebx, [eax + 1]
test ebx, ebx
je case.default.0x406627
mov ecx, dword [esi + 0x310]
lea ebp, [ebx - 1]
push 2
push ebp
push 0x100c
push ecx
call edi
push 3
lea edx, [esp + 0x14]
push ebp
push edx
lea ecx, [esi + 0x2f4]
lea ebx, [eax + 1]
call fcn.00438b77
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x406710
push 5
push 0
push 0
push eax
mov eax, dword [esi + 0x1c]
push 0x45453c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
call fcn.0043d0ed
test ebx, ebx
jne 0x4066c5
jmp case.default.0x406627
mov ecx, dword [esi + 0x310]
push ebx
push ebx
push 0x1004
push ecx
xor ebp, ebp
call edi
cmp eax, ebx
jle case.default.0x406627
push ebx
lea edx, [esp + 0x14]
push ebp
push edx
lea ecx, [esi + 0x2f4]
call fcn.00438b77
mov eax, dword [esp + 0x10]
push 0x454648
push eax
call fcn.004296d5
add esp, 8
test eax, eax
jne 0x406775
mov ecx, dword [esi + 0x310]
push ebx
push ebp
push 0x1008
push ecx
call edi
dec ebp
lea ecx, [esp + 0x10]
call fcn.0043d0ed
mov edx, dword [esi + 0x310]
push ebx
push ebx
push 0x1004
push edx
inc ebp
call edi
cmp ebp, eax
jl 0x40673c
jmp case.default.0x406627
mov eax, dword [esi + 0x310]
push ebx
push ebx
push 0x1004
push eax
xor ebp, ebp
call edi
cmp eax, ebx
jle case.default.0x406627
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
lea ecx, [esi + 0x2f4]
call fcn.00438b77
mov edx, dword [esp + 0x10]
push 0x4546cc
push edx
call fcn.004296d5
add esp, 8
test eax, eax
jne 0x4067eb
mov eax, dword [esi + 0x310]
push ebx
push ebp
push 0x1008
push eax
call edi
dec ebp
lea ecx, [esp + 0x10]
call fcn.0043d0ed
mov ecx, dword [esi + 0x310]
push ebx
push ebx
push 0x1004
push ecx
inc ebp
call edi
cmp ebp, eax
jl 0x4067b2
jmp case.default.0x406627
mov edx, dword [esi + 0x310]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
call edi
cmp eax, 0xffffffff
je case.default.0x406627
push ebx
push eax
mov eax, dword [esi + 0x310]
push 0x1008
push eax
call edi
jmp case.0x406627.32773
mov ecx, dword [esi + 0x310]
push ebx
push ebx
push 0x1009
push ecx
call edi
mov esi, vtable.CMenu.0
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 2
call fcn.0043e71a
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 3
call fcn.0043e71a
pop ebp
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret