Function at 0x100222f0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10178059
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101ce2ac]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2ac]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
mov ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov edi, 1
mov dword [esp + 0x64], edi
mov edx, dword [esp + 0x50]
mov byte [edx], 0
mov dword [esp + 0x64], 2
test al, al
cmp dword [esp + 0x80], 0
jg 0x100223a3
push eax
mov ecx, ebx
call fcn.1000cf10
mov dword [esp + 0x38], edi
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x40]
call fcn.10006e00
mov eax, ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10116cb9
add esp, 0x54
ret
lea ecx, [esp + 0x18]
call fcn.101089f7
mov byte [esp + 0x64], 3
test cl, cl
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10182558
push esi
call fcn.10060090
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x3c], ebp
mov dh, dh
test ebp, ebp
jne 0x100223f4
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
call fcn.1000cf10
mov dword [esp + 0x38], edi
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10108d3f
jmp 0x10022374
lea eax, [ebp*4]
push eax
call fcn.1011671b
add esp, 4
mov esi, eax
mov bh, bh
test esi, esi
jne 0x10022413
lea ecx, [esp + 0x40]
push ecx
jmp 0x100223d9
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.1011671b
add esp, 4
mov dword [esp + 0x30], eax
test eax, 0x6ad0
test eax, eax
jne 0x10022443
push esi
call fcn.101167de
add esp, 4
test ecx, ecx
lea eax, [esp + 0x40]
push eax
jmp 0x100223d9
test cl, cl
xor edi, edi
test ebp, ebp
jle 0x1002247c
mov ebx, eax
lea ecx, [ecx]
mov dword [esi + edi*4], 0
test ecx, ecx
push 0x510
push 0
push ebx
call fcn.10117df0
add esp, 0xc
push ecx
pop ecx
add edi, 1
add ebx, 0x510
cmp edi, ebp
jl 0x10022450
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x2c], eax
test edx, edx
cmp ebp, eax
mov dword [esp + 0x14], eax
jle 0x10022622
mov edi, dword [esp + 0x30]
add edi, 0x100
jmp 0x100224a4
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x100225ee
cmp eax, dword [esp + 0x20]
jge 0x100225ee
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4]
lea ebx, [edi - 0x100]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x100224c5
test bh, bh
mov edx, dword [esp + 0x7c]
mov dword [edi + 4], edx
mov dl, dl
mov eax, dword [esp + 0x78]
mov dword [edi], eax
test dh, dh
mov ecx, dword [esp + 0x80]
mov dword [edi + 8], ecx
xchg ebx, eax
xchg ebx, eax
call fcn.100408d0
mov ebp, eax
mov dh, dh
push 0
push 0
push ebx
push 0x10021730
push 0
push 0
call fcn.1011944f
mov ebx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + ebx*4], eax
push ecx
pop ecx
push ebp
call fcn.10040990
add esp, 4
test dh, dh
cmp dword [esi + ebx*4], 0
je 0x10022534
add ebx, 1
mov dword [esp + 0x2c], ebx
push edx
pop edx
mov eax, dword [esp + 0x14]
add eax, 1
add edi, 0x510
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x100224a0
cmp dword [esp + 0x2c], 0
jle 0x1002261a
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
add ebx, 0xffffffff
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov edi, eax
mov cl, cl
cmp edi, 0xffffffff
je 0x1002261a
test ah, ah
mov dword [esp + 0x14], 0
test eax, 0x2a23
mov ecx, dword [esi + edi*4]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
push ecx
pop ecx
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ch, ch
mov dword [esi + edi*4], 0
test eax, eax
cmp edi, ebx
mov eax, edi
jge 0x100225d0
jmp 0x100225c0
mov ecx, dword [esi + eax*4 + 4]
mov dword [esi + eax*4], ecx
mov ebx, ebx
add eax, 1
cmp eax, ebx
jl 0x100225c0
sub dword [esp + 0x2c], 1
sub ebx, 1
mov ch, ch
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100225f3
cmp dword [esp + 0x2c], eax
jg 0x10022567
jmp 0x1002261a
jmp fcn.10105789
test ebx, ebx
lea ecx, [eax + 0x10c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10022600
sub eax, edi
add eax, ecx
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.1000d090
test edx, edx
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jle 0x10022643
mov eax, dword [esp + 0x30]
add eax, 0x50c
mov ecx, ebp
mov dword [eax], 1
test ch, ch
add eax, 0x510
sub ecx, 1
jne 0x10022631
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x1002267b
mov eax, dword [esi + edi*4]
test eax, eax
je 0x10022672
push eax
call fcn.10067030
add esp, 4
test edi, edi
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
pop edx
mov dword [esi + edi*4], 0
push eax
pop eax
add edi, 1
cmp edi, dword [esp + 0x2c]
jl 0x1002264b
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x54]
jne 0x100226d9
test ebp, ebp
jle 0x100226d9
mov edx, dword [esp + 0x30]
lea ecx, [edx + 0x10c]
cmp byte [ecx], 0
jne 0x100226a7
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10022693
jmp 0x100226d9
imul eax, eax, 0x510
lea edi, [eax + edx + 0x10c]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100226c0
sub eax, edx
add eax, edi
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.1000d090
nop
push esi
call fcn.101167de
add esp, 4
test al, al
mov ecx, dword [esp + 0x30]
push ecx
call fcn.101167de
add esp, 4
mov edi, edi
mov dword [ebx + 0x10], ebx
mov dword [ebx + 0x14], ebx
mov byte [esp + 0x64], 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov esi, eax
sub eax, ecx
add eax, 1
cmp eax, 0xffffffff
mov edi, ecx
ja 0x10022787
test eax, eax
jbe 0x10022787
cmp eax, 0x10
jbe 0x1002274b
cmp eax, 0x80
mov dword [esp + 0x30], eax
jbe 0x10022730
push eax
call fcn.10105660
jmp 0x1002273a
lea edx, [esp + 0x30]
push edx
call fcn.10105330
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
add eax, ecx
mov dword [ebx], eax
cmp esi, edi
mov eax, dword [ebx + 0x14]
je 0x10022761
sub esi, edi
push esi
push edi
push eax
call fcn.10117a80
add esp, 0xc
add eax, esi
mov dword [ebx + 0x10], eax
mov byte [eax], 0
mov byte [esp + 0x64], 3
mov dword [esp + 0x38], 1
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10108d3f
jmp 0x10022374
push 0x101823a8
call fcn.101055c0