Function at 0x1000aa2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x1004f598]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
jne 0x1000a8bf
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 5
ja case.default.0x1000a8ce
push esi
push edi
jmp dword [eax*4 + 0x1000abe0]
mov esi, dword [ebp + 8]
call fcn.1000dab0
mov eax, dword [0x1004f598]
mov dword [eax + 0x108], esi
jmp 0x1000a8ed
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
cmp edi, ebx
je 0x1000abd4
push edi
or ebx, 0xffffffff
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
jle 0x1000a93b
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test al, al
jns 0x1000a935
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 - 8]
jl 0x1000a911
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 0x1000abd4
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp - 8], eax
cmp ebx, esi
je 0x1000a977
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 0x1000abd4
mov eax, dword [ebp - 8]
test al, 3
jne 0x1000abd4
test al, 0x10
je 0x1000a9ee
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
test ebx, ebx
je 0x1000abd4
lea edx, [ebp - 0x18]
push edx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemRect]
test eax, eax
je 0x1000abd4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
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 8
test eax, 0x800
je 0x1000a9f9
xor eax, eax
jmp 0x1000aa0a
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
je 0x1000abd4
push 0
movzx edx, ax
push edx
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.1000daf0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 0x1000aab1
test cl, cl
jne 0x1000aa7d
test byte [edx + 0x7b], 0x80
je 0x1000aad7
mov edx, dword [ebp + 8]
push ebx
push ebx
push 0x10
push 2
push edx
call dword [sym.imp.USER32.dll_GetAncestor]
jmp 0x1000aad0
test byte [edx + 0x36], 0x80
je 0x1000aad7
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 8
test cl, cl
je 0x1000aad7
test byte [edx + 0x23], 0x80
je 0x1000aad7
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 8
cmp dword [0x1004f398], ebx
je 0x1000abd4
mov eax, dword [ebp + 8]
call fcn.1000c4c0
pop edi
mov dword [ebp - 4], 0xdead
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edx, ebx
jne 0x1000ab40
call dword [sym.imp.USER32.dll_GetCursor]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov edx, dword [0x1004f598]
pop edi
pop esi
mov dword [edx + 0x11f], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edx
call dword [sym.imp.USER32.dll_DestroyCursor]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x10059ea8]
cmp eax, dword [ecx + 0x124]
jne 0x1000ab6d
mov eax, dword [0x10059eac]
cmp eax, dword [ecx + 0x128]
je 0x1000abd4
cmp edx, ebx
jne 0x1000aba3
cmp dword [0x10059ef4], ebx
je 0x1000abd4
mov ecx, dword [0x10059eec]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [0x10059ef4]
call fcn.10025580
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x10059ef4], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
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.10008380
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8