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

Disassembly:
push 0xffffffffffffffff
push 0x10170529
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101c52b4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c52b4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
xor edi, edi
mov dword [esp + 0x34], edi
mov esi, 0xf
mov dword [esp + 0x38], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
mov dword [esp + 0x68], 1
mov esi, esi
cmp dword [esp + 0x84], edi
jg 0x10021dd4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x48]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], edi
push eax
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.10009f70
mov dword [esp + 0x34], 1
mov byte [esp + 0x68], 0
cmp dword [esp + 0x58], 0x10
jb 0x100221b8
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x100221b0
lea ecx, [esp + 0x18]
call fcn.10100215
mov byte [esp + 0x68], 2
mov esi, esi
push edi
lea edx, [esp + 0x1c]
push edx
push 0x10179578
push ebp
call fcn.1004f530
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x30], ebp
mov cl, cl
cmp ebp, edi
je 0x10021e21
lea edx, [ebp*4]
push edx
call fcn.1010df39
add esp, 4
mov esi, eax
mov dl, dl
cmp esi, edi
jne 0x10021e6a
mov esi, 0xf
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x48]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], edi
push eax
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.10009f70
mov dword [esp + 0x34], 1
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.1010055d
mov byte [esp + 0x68], 0
cmp dword [esp + 0x58], 0x10
jb 0x100221b8
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x100221b0
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.1010df39
add esp, 4
mov dword [esp + 0x3c], eax
mov cl, cl
cmp eax, edi
jne 0x10021ec5
push esi
call fcn.1010dffc
add esp, 4
mov ch, ch
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.1000a250
mov dword [esp + 0x34], 1
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.1010055d
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x40]
call fcn.100066f0
jmp 0x100221c5
mov cl, cl
test ebp, ebp
jle 0x10021efe
mov ebp, eax
lea ecx, [ecx]
mov dword [esi + edi*4], 0
push ebx
pop ebx
push 0x510
push 0
push ebp
call fcn.1010efd0
add esp, 0xc
mov ah, ah
add edi, 1
add ebp, 0x510
cmp edi, dword [esp + 0x30]
jl 0x10021ed0
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, ecx
cmp ebp, eax
mov dword [esp + 0x14], eax
jle 0x100220a0
mov edi, dword [esp + 0x3c]
add edi, 0x100
jmp 0x10021f24
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x1002206a
cmp eax, dword [esp + 0x20]
jge 0x1002206a
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 0x10021f45
push ecx
pop ecx
mov edx, dword [esp + 0x80]
mov dword [edi + 4], edx
mov eax, eax
mov eax, dword [esp + 0x7c]
mov dword [edi], eax
mov ecx, ecx
mov ecx, dword [esp + 0x84]
mov dword [edi + 8], ecx
push ecx
pop ecx
call fcn.1002fd50
mov ebp, eax
mov ebp, ebp
push 0
push 0
push ebx
push 0x100212c0
push 0
push 0
call fcn.1011074f
mov ebx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + ebx*4], eax
push ebx
pop ebx
push ebp
call fcn.1002fe10
add esp, 4
mov edi, edi
cmp dword [esi + ebx*4], 0
je 0x10021fb7
add ebx, 1
mov dword [esp + 0x2c], ebx
mov cl, cl
mov eax, dword [esp + 0x14]
add eax, 1
add edi, 0x510
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
jl 0x10021f20
cmp dword [esp + 0x2c], 0
jle 0x10022098
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 ebp, ebp
cmp edi, 0xffffffff
je 0x10022098
mov esi, esi
mov dword [esp + 0x14], 0
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [esi + edi*4]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov ecx, ecx
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, al
mov dword [esi + edi*4], 0
nop
cmp edi, ebx
mov eax, edi
jge 0x10022050
lea ebx, [ebx]
mov ecx, dword [esi + eax*4 + 4]
mov dword [esi + eax*4], ecx
mov dh, dh
add eax, 1
cmp eax, ebx
jl 0x10022040
sub dword [esp + 0x2c], 1
sub ebx, 1
mov ch, ch
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1002206f
cmp dword [esp + 0x2c], eax
jg 0x10021fea
jmp 0x10022098
jmp fcn.100fcfa6
nop
lea edx, [eax + 0x10c]
mov eax, edx
lea edi, [eax + 1]
jmp 0x10022080
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022080
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.1000a180
mov ah, ah
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
test ebp, ebp
jle 0x100220c2
mov eax, dword [esp + 0x3c]
add eax, 0x50c
mov ecx, ebp
nop
mov dword [eax], 1
mov esi, esi
add eax, 0x510
sub ecx, 1
jne 0x100220b0
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x100220fa
mov eax, dword [esi + edi*4]
test eax, eax
je 0x100220f1
push eax
call fcn.10056f90
add esp, 4
push edx
pop edx
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, eax
mov dword [esi + edi*4], 0
push ebx
pop ebx
add edi, 1
cmp edi, dword [esp + 0x2c]
jl 0x100220ca
cmp dword [esp + 0x54], 0
jne 0x1002214f
xor eax, eax
test ebp, ebp
jle 0x1002214f
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 0x10c]
cmp byte [ecx], 0
jne 0x10022125
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10022111
jmp 0x1002214f
imul eax, eax, 0x510
lea edx, [eax + edx + 0x10c]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022137
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.1000a180
mov edi, edi
push esi
call fcn.1010dffc
add esp, 4
mov ch, ch
mov eax, dword [esp + 0x3c]
push eax
call fcn.1010dffc
add esp, 4
mov ebx, ebx
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0x48]
mov esi, 0xf
push ecx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], edi
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.10009f70
mov dword [esp + 0x34], 1
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.1010055d
mov byte [esp + 0x68], 0
cmp dword [esp + 0x58], 0x10
jb 0x100221b8
mov edx, dword [esp + 0x44]
push edx
call fcn.100fcea8
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x58
ret