Function at 0x10020f90
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10172f89
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c8fb4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x20], esi
mov ebx, 0xf
mov dword [esp + 0x28], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
mov dword [esp + 0x6c], 1
cmp dword [esp + 0x88], esi
jg 0x10021043
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x4c]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10021031
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10100548
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x10021408
lea ecx, [esp + 0x30]
call fcn.10102d5b
mov byte [esp + 0x6c], 2
push esi
lea edx, [esp + 0x34]
push edx
push 0x1017ba38
push ebp
call fcn.1005deb0
mov ebp, eax
add esp, 0x10
cmp ebp, esi
mov dword [esp + 0x1c], ebp
je 0x1002108a
lea edx, [ebp*4]
push edx
call fcn.10111579
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x100210e8
mov ebx, 0xf
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x4c]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.101030a3
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10021031
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10100548
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x10021408
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.10111579
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x1002113f
push ebx
call fcn.1011163c
add esp, 4
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.10004150
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.101030a3
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x44]
call fcn.10001d10
jmp 0x10021408
test ebp, ebp
jle 0x10021171
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x510
push 0
push ecx
mov dword [ebx + esi*4], 0
call fcn.10112240
add dword [esp + 0x20], 0x510
add esi, 1
add esp, 0xc
cmp esi, ebp
jl 0x10021147
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x100212ee
mov esi, dword [esp + 0x24]
add esi, 0x100
jmp 0x10021194
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x100212bb
cmp eax, dword [esp + 0x38]
jge 0x100212bb
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + eax*4]
lea ebp, [esi - 0x100]
mov edx, ebp
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x100211b5
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov dword [esi + 8], edx
call fcn.10040860
push 0
push 0
push ebp
push 0x100205c0
push 0
push 0
mov edi, eax
call fcn.101136ff
mov ebp, dword [esp + 0x2c]
push edi
mov dword [ebx + ebp*4], eax
call fcn.10040900
add esp, 0x1c
cmp dword [ebx + ebp*4], 0
je 0x10021217
add ebp, 1
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 0x510
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x10021190
cmp dword [esp + 0x14], 0
jle 0x100212e6
mov esi, dword [esp + 0x14]
add esi, 0xffffffff
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100212e6
mov edx, dword [ebx + ebp*4]
lea ecx, [esp + 0x2c]
lea edi, [ebx + ebp*4]
push ecx
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, esi
mov dword [edi], 0
jge 0x1002129f
mov ecx, esi
lea eax, [edi + 4]
sub ecx, ebp
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x14], 1
sub esi, 1
test eax, eax
mov dword [esp + 0x18], esi
jne 0x100212c0
cmp dword [esp + 0x14], eax
jg 0x10021248
jmp 0x100212e6
jmp fcn.10100646
lea edx, [eax + 0x10c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x100212d0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100212d0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.10004080
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x10021310
mov eax, dword [esp + 0x24]
add eax, 0x50c
mov ecx, ebp
lea ecx, [ecx]
mov dword [eax], 1
add eax, 0x510
sub ecx, 1
jne 0x10021300
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x10021342
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x10021339
push eax
call fcn.10064f10
mov ecx, dword [ebx + esi*4]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + esi*4], 0
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x10021318
cmp dword [esp + 0x58], 0
jne 0x1002139c
xor eax, eax
test ebp, ebp
jle 0x1002139c
mov edx, dword [esp + 0x24]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x10021374
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10021360
jmp 0x1002139c
imul eax, eax, 0x510
lea edx, [eax + edx + 0x10c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10021386
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.10004080
push ebx
call fcn.1011163c
mov edx, dword [esp + 0x28]
push edx
call fcn.1011163c
add esp, 8
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x4c]
mov esi, 0xf
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], bl
call fcn.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.101030a3
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x5c], 0x10
jb 0x100213fc
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10100548
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov eax, edi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10111b17
add esp, 0x5c
ret