Function at 0x10022217
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005eca7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
and dword [esp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push 1
lea ecx, [esp + 0x58]
call fcn.10005147
mov dword [esp + 0x10], 6
xor edx, edx
mov dword [esp + 0x18], 0xf37911b9
mov dword [esp + 0xc], edx
jmp 0x1002227a
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x5b57fd54
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 1
jl 0x10022267
push 2
mov dword [esp + 0x10], edx
pop ebx
jmp 0x1002229a
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x20], 0x4c506d44
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jl 0x1002228a
mov dword [esp + 0x24], edx
jmp 0x100222da
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
sub edx, dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, edx
setl cl
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
inc dword [esp + 0x24]
xor edx, edx
cmp dword [esp + 0x24], edx
jle 0x100222a6
lea ecx, [esp + 0x54]
call fcn.100051ca
call fcn.1001e7c4
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.1002267c
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0xc], 0xffffffe2
jmp 0x10022337
mov byte [esp + 0x17], al
cmp byte [esp + 0x17], 0
je 0x10022333
push 0x50a
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xffffffe8
jg 0x10022310
mov eax, dword [esp + 0xc]
add esi, 0xffffb2a8
mov edx, dword [esp + 0x3c]
mov ecx, edx
mov dword [esp + 0xc], eax
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10022382
cmp dword [eax + 0x10], esi
jge 0x10022365
mov eax, dword [eax + 8]
jmp 0x10022369
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1002235b
cmp ecx, edx
je 0x10022382
cmp esi, dword [ecx + 0x10]
jl 0x10022382
mov dword [esp + 0x44], ecx
lea esi, [esp + 0x44]
jmp 0x1002238a
mov dword [esp + 0x50], edx
lea esi, [esp + 0x50]
mov eax, dword [0x1014f028]
mov esi, dword [esi]
test al, 1
jne 0x100223c1
and dword [0x1014f01c], 0
or eax, 1
mov dword [0x1014f028], eax
xor eax, eax
push 0x1005f8a3
mov dword [0x1014f020], 7
mov word [0x1014f00c], ax
call fcn.10046fb9
pop ecx
mov dword [esp + 0x10], 0xfffffff8
mov dword [esp + 0x4c], 0xb74c38b6
mov dword [esp + 0x38], 0x1b552bf3
mov dword [esp + 0x18], 0x33c2251
mov dword [esp + 0x1c], 0xfffa
mov dword [esp + 0x48], 0xfffd
mov dword [esp + 0xc], 0xfff6
mov dword [esp + 0xc], 0
jmp 0x10022413
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x2c], 0x13923cc
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x10022403
mov eax, dword [esp + 0x34]
xor edx, edx
cmp eax, 0xfffffff7
mov ecx, 0x7d2a7e9f
mov eax, dword [esp + 0x18]
setle dl
sub ecx, edx
add eax, ecx
jne 0x1002243f
cmp dword [esp + 0x10], eax
jne 0x1002243f
xor ecx, ecx
jmp 0x10022442
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x34]
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x10]
setg dl
xor ecx, ecx
cmp edx, eax
setl cl
xor edx, edx
imul ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
inc ecx
cmp eax, ecx
mov eax, dword [esp + 0x2c]
setl dl
xor ecx, ecx
cmp edx, eax
setle cl
xor eax, eax
cmp ecx, 0xfffffffe
setle al
test eax, eax
jle 0x10022484
mov eax, dword [esp + 0x4c]
inc dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
inc ecx
mov eax, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x48]
sub ecx, eax
jne 0x100224a7
cmp dword [esp + 0x10], ecx
jne 0x100224a7
xor edx, edx
jmp 0x100224aa
xor edx, edx
inc edx
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, eax
sete cl
xor edx, edx
test ecx, ecx
setle dl
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x18]
cmp edx, eax
setg cl
mov dword [esp + 0xc], ecx
cmp esi, dword [esp + 0x3c]
je 0x100224f2
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x7c]
call fcn.10019ad3
pop ecx
xor ebx, ebx
mov byte [esp + 0x9c], 1
inc ebx
jmp 0x10022507
push 0x1014f00c
lea ecx, [esp + 0x64]
call fcn.10004fbb
mov dword [esp + 0x9c], ebx
push eax
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.10004fbb
or ebx, 4
test bl, 2
je 0x1002252b
push 0
push 1
lea ecx, [esp + 0x68]
and ebx, 0xfffffffd
call fcn.1000587a
test bl, 1
je 0x10022540
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.1000587a
lea ecx, [esp + 0x3c]
call fcn.10022585
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret