Function at 0x1001ff80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10161789
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b629c]
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 0x10020033
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10020021
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee0d8
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x100203f8
lea ecx, [esp + 0x30]
call fcn.100f1440
mov byte [esp + 0x6c], 2
push esi
lea edx, [esp + 0x34]
push edx
push 0x1016a58c
push ebp
call fcn.1004a900
mov ebp, eax
add esp, 0x10
cmp ebp, esi
mov dword [esp + 0x1c], ebp
je 0x1002007a
lea edx, [ebp*4]
push edx
call fcn.100ff166
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x100200d8
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1788
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x10020021
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee0d8
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x100203f8
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.100ff166
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x1002012f
push ebx
call fcn.100ff229
add esp, 4
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.10009aa0
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1788
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x44]
call fcn.10006120
jmp 0x100203f8
test ebp, ebp
jle 0x10020161
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x510
push 0
push ecx
mov dword [ebx + esi*4], 0
call fcn.10100160
add dword [esp + 0x20], 0x510
add esi, 1
add esp, 0xc
cmp esi, ebp
jl 0x10020137
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x100202de
mov esi, dword [esp + 0x24]
add esi, 0x100
jmp 0x10020184
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x100202ab
cmp eax, dword [esp + 0x38]
jge 0x100202ab
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 0x100201a5
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.1002d8c0
push 0
push 0
push ebp
push 0x1001f5b0
push 0
push 0
mov edi, eax
call fcn.101018df
mov ebp, dword [esp + 0x2c]
push edi
mov dword [ebx + ebp*4], eax
call fcn.1002d960
add esp, 0x1c
cmp dword [ebx + ebp*4], 0
je 0x10020207
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 0x10020180
cmp dword [esp + 0x14], 0
jle 0x100202d6
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 0x100202d6
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 0x1002028f
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 0x100202b0
cmp dword [esp + 0x14], eax
jg 0x10020238
jmp 0x100202d6
jmp fcn.100ee1d6
lea edx, [eax + 0x10c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x100202c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100202c0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.100099d0
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x10020300
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 0x100202f0
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x10020332
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x10020329
push eax
call fcn.10051ec0
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 0x10020308
cmp dword [esp + 0x58], 0
jne 0x1002038c
xor eax, eax
test ebp, ebp
jle 0x1002038c
mov edx, dword [esp + 0x24]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x10020364
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10020350
jmp 0x1002038c
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 0x10020376
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.100099d0
push ebx
call fcn.100ff229
mov edx, dword [esp + 0x28]
push edx
call fcn.100ff229
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1788
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x5c], 0x10
jb 0x100203ec
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee0d8
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.100ff704
add esp, 0x5c
ret