Function at 0x10021cec
Capabilities:
Create process on windows
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x101be241
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1024bd20]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, 0x3e9
cmp dword [esp + 0x88], esi
jne 0x10021f2a
mov al, byte [ebx + 0xa1]
test al, al
je 0x10021e29
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
push ebp
push esi
push 0x46f
push dword [ebx + 0x64]
call edi
push ebp
push ebp
push ebp
push 0x10022013
push ebp
push ebp
call fcn.101797d8
add esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xa8]
push eax
call fcn.1001d800
cmp dword [esp + 0x14], ebp
je 0x10021d8a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0x7c]
lea ecx, [esp + 0x60]
call fcn.1000f0e0
mov esi, 0x101d249c
mov dword [esp + 0x80], ebp
push esi
call fcn.1000f0b0
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.100136d0
mov esi, dword [ebx + 0x80]
push esi
call fcn.1000f0b0
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.100136d0
mov esi, 0x101d24a4
push esi
call fcn.1000f0b0
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.100136d0
mov esi, dword [ebx + 0x84]
push esi
call fcn.1000f0b0
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.100136d0
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push ebp
push 0x46c
push dword [ebx + 0x64]
call edi
push ebp
push 1
lea ecx, [esp + 0x64]
call fcn.1000ee50
xor eax, eax
inc eax
jmp 0x10021ff2
cmp byte [0x102540b0], 0
jne 0x10021f1a
xor ebp, ebp
mov byte [ebx + 0xa0], 1
push 0x38
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebp
push ebp
push eax
call fcn.10179250
add esp, 0xc
lea eax, [ebx + 0x128]
cmp dword [ebx + 0x9c], ebp
lea esi, [esp + 0x20]
mov edi, eax
push 0xf
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 0x3c
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x138], eax
mov eax, 0x100
push 0x40
pop ecx
cmovne eax, ecx
mov dword [ebx + 0x134], 0x101d24b8
cmp byte [ebx + 0xa4], 0
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x94]
mov dword [ebx + 0x144], 1
mov dword [ebx + 0x13c], eax
je 0x10021ec0
push ebp
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x128]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [ebx + 0xa4], 0
jne 0x10021eff
mov ecx, ebx
call fcn.10021c56
test eax, eax
je 0x10021ff0
push 1
push 0x3e9
push 0x46f
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10021e21
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push 0x10022047
push ebp
push ebp
call fcn.101797d8
add esp, 0x18
jmp 0x10021e21
push 5
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push esi
jmp 0x10021eec
cmp dword [esp + 0x88], 2
jne 0x10021f3f
lea ecx, [ebx + 0xb0]
call fcn.10040cc2
cmp dword [esp + 0x88], 0x3e8
jne 0x10021ff0
and dword [esp + 0x18], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x80], 1
push eax
lea ecx, [ebx + 0xb0]
call fcn.10040b30
push dword [eax]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
call fcn.10012f50
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
lea ecx, [ecx - 0x10]
call fcn.1000c230
lea eax, [esp + 0x14]
push 0x1397
push eax
call fcn.1002e529
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x80], 3
cmp dword [eax - 4], 1
jle 0x10021fca
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
call fcn.1000ba60
mov eax, dword [esp + 0x14]
push 0x10
push eax
push dword [esp + 0x20]
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.1000c230
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1017868e
add esp, 0x70
ret 4