Function at 0x1000ac7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [0x1004f598]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
jne 0x1000ab0f
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 5
ja case.default.0x1000ab1e
push esi
push edi
jmp dword [eax*4 + 0x1000adf8]
mov esi, dword [ebp + 8]
call fcn.1000dd60
mov eax, dword [0x1004f598]
mov dword [eax + 0x108], esi
jmp 0x1000ab3d
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
cmp edi, ebx
je case.0x1000ab1e.5
push edi
or ebx, 0xffffffff
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x1000ab8b
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test al, al
jns 0x1000ab85
mov ecx, dword [ebp + 8]
push 0x400
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov ebx, esi
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x1000ab61
mov eax, dword [0x1004f598]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov esi, eax
cmp esi, 0xffffffff
je case.0x1000ab1e.5
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp + 0x10], eax
cmp ebx, esi
je 0x1000abc7
call dword [sym.imp.USER32.dll_EndMenu]
mov ebx, dword [ebp + 8]
push 0x480
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
cmp dword [ebp + 0xc], 2
je case.0x1000ab1e.5
mov eax, dword [ebp + 0x10]
test al, 3
jne case.0x1000ab1e.5
test al, 0x10
je 0x1000ac3e
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
test ebx, ebx
je case.0x1000ab1e.5
lea edx, [ebp - 0x14]
push edx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemRect]
test eax, eax
je case.0x1000ab1e.5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
push 0
push esi
push eax
push ecx
push 0x4000
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, 0x800
je 0x1000ac49
xor eax, eax
jmp 0x1000ac5a
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
je case.0x1000ab1e.5
push 0
movzx edx, ax
push edx
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.1000dda0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1004eb1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1004f598]
add ecx, 8
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [0x1004f598]
mov al, byte [edx + 0x1a]
mov cl, byte [edx + 0x19]
shr al, 7
shr cl, 7
test al, al
je 0x1000ad01
test cl, cl
jne 0x1000accd
test byte [edx + 0x7b], 0x80
je 0x1000ad27
mov edx, dword [ebp + 8]
push ebx
push ebx
push 0x10
push 2
push edx
call dword [sym.imp.USER32.dll_GetAncestor]
jmp 0x1000ad20
test byte [edx + 0x36], 0x80
je 0x1000ad27
push 1
push ebx
push ebx
push str.taskmgr
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [0x1004eb1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
je 0x1000ad27
test byte [edx + 0x23], 0x80
je 0x1000ad27
mov eax, dword [0x1004ebb4]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push ebx
push ebx
push 0x201
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x1004eb1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1004f398], ebx
je case.0x1000ab1e.5
mov eax, dword [ebp + 8]
call fcn.1000c690
pop edi
mov dword [ebp - 4], 0xdead
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x10059ea8]
cmp edx, dword [ecx + 0x124]
jne 0x1000ad82
mov eax, dword [0x10059eac]
cmp eax, dword [ecx + 0x128]
je case.0x1000ab1e.5
cmp dword [ebp + 0x10], ebx
jne 0x1000adb9
cmp dword [0x10059ef4], ebx
je case.0x1000ab1e.5
mov ecx, dword [0x10059eec]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [0x10059ef4]
call fcn.10007310
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x10059ef4], ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x1004f54c
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
push eax
mov dword [0x10059ef4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edi, edi
mov dword [0x10059eec], eax
call fcn.10008670
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0xc