Function at 0x10020690
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10162499
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b734c]
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 0x10020743
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.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10020731
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100eedad
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x10020b08
lea ecx, [esp + 0x30]
call fcn.100f210c
mov byte [esp + 0x6c], 2
push esi
lea edx, [esp + 0x34]
push edx
push 0x1016b58c
push ebp
call fcn.1004b350
mov ebp, eax
add esp, 0x10
cmp ebp, esi
mov dword [esp + 0x1c], ebp
je 0x1002078a
lea edx, [ebp*4]
push edx
call fcn.100ffe35
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x100207e8
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.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f2454
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10020731
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100eedad
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x10020b08
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.100ffe35
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x1002083f
push ebx
call fcn.100ffef8
add esp, 4
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.10009e60
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f2454
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x44]
call fcn.10006110
jmp 0x10020b08
test ebp, ebp
jle 0x10020871
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x510
push 0
push ecx
mov dword [ebx + esi*4], 0
call fcn.10100e30
add dword [esp + 0x20], 0x510
add esi, 1
add esp, 0xc
cmp esi, ebp
jl 0x10020847
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x100209ee
mov esi, dword [esp + 0x24]
add esi, 0x100
jmp 0x10020894
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x100209bb
cmp eax, dword [esp + 0x38]
jge 0x100209bb
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 0x100208b5
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.1002e150
push 0
push 0
push ebp
push 0x1001fcc0
push 0
push 0
mov edi, eax
call fcn.101025af
mov ebp, dword [esp + 0x2c]
push edi
mov dword [ebx + ebp*4], eax
call fcn.1002e1f0
add esp, 0x1c
cmp dword [ebx + ebp*4], 0
je 0x10020917
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 0x10020890
cmp dword [esp + 0x14], 0
jle 0x100209e6
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 0x100209e6
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 0x1002099f
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 0x100209c0
cmp dword [esp + 0x14], eax
jg 0x10020948
jmp 0x100209e6
jmp fcn.100eeea6
lea edx, [eax + 0x10c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x100209d0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100209d0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.10009d90
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x10020a10
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 0x10020a00
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x10020a42
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x10020a39
push eax
call fcn.100529b0
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 0x10020a18
cmp dword [esp + 0x58], 0
jne 0x10020a9c
xor eax, eax
test ebp, ebp
jle 0x10020a9c
mov edx, dword [esp + 0x24]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x10020a74
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10020a60
jmp 0x10020a9c
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 0x10020a86
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.10009d90
push ebx
call fcn.100ffef8
mov edx, dword [esp + 0x28]
push edx
call fcn.100ffef8
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.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f2454
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x5c], 0x10
jb 0x10020afc
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100eedad
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.101003d3
add esp, 0x5c
ret