Function at 0x10010ee9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x7c
mov dword [0x10019d64], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [0x10019d60], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [0x10019d68], eax
mov esi, 0x1001959c
xor ebx, ebx
or ecx, 0xffffffff
mov edx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, ebx
jne 0x10010f40
mov eax, dword [ebp + 0x18]
push 0x1000eb04
push dword [0x10019598]
call dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setns cl
mov edx, esi
mov eax, ecx
xchg dword [edx], ecx
cmp eax, ebx
jl 0x10010f11
mov eax, dword [0x10019d64]
mov esi, dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edi, dword [0x10019d64]
lea ecx, [edi + edi]
push ecx
push ebx
push eax
mov dword [ebp + 0x10], eax
call sub.MSVCRT.dll_memset
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edi, dword [0x10019d64]
lea ecx, [edi + edi]
push ecx
push ebx
push eax
mov dword [ebp + 0x14], eax
call sub.MSVCRT.dll_memset
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov dword [ebp + 0xc], eax
mov eax, dword [0x10019d64]
add eax, eax
push eax
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0x30
push ebx
push dword [ebp + 0xc]
call fcn.10013681
push ebx
push dword [ebp + 0x14]
call fcn.10013681
mov edi, dword [ebp + 0x10]
push ebx
push edi
call fcn.10013681
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x140
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10011009
sub eax, ecx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
and eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1001102a
sub eax, ecx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
and eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10011099
cmp dword [ebp - 4], ebx
je 0x1001108c
cmp dword [ebp - 4], 0xffffffff
je 0x1001108c
push dword [ebp - 4]
lea eax, [ebp - 0x7c]
push str.hProc:_08X
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call fcn.100136d0
push 0x10014960
jmp 0x100110aa
push ebx
call fcn.100137eb
push str.no_wait
jmp 0x100110aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100137eb
push 0x10014978
call fcn.100136d0
mov esi, dword [sym.imp.MSVCRT.dll_void___cdecl_operator_delete_void__]
cmp edi, ebx
je 0x100110e6
mov eax, dword [0x10019d64]
cmp eax, ebx
ja 0x100110d6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100110c7
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ebx
push edi
call sub.MSVCRT.dll_memset
push edi
call esi
add esp, 0x10
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x1001111a
mov eax, dword [0x10019d64]
cmp eax, ebx
ja 0x1001110a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100110fb
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ebx
push edi
call sub.MSVCRT.dll_memset
push edi
call esi
add esp, 0x10
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x1001114e
mov eax, dword [0x10019d64]
cmp eax, ebx
ja 0x1001113e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001112f
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ebx
push edi
call sub.MSVCRT.dll_memset
push edi
call esi
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret