Function at 0x1001f830
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10158249
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101ad3b4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ad3b4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x44]
mov dword [esp + 0x24], 0
mov ecx, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov esi, 1
mov dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov byte [edx], 0
mov dword [esp + 0x68], 2
cmp dword [esp + 0x84], 0
jg 0x1001f8e1
push eax
mov ecx, ebp
call fcn.10009b80
mov dword [esp + 0x24], esi
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x44]
call fcn.10006310
mov eax, ebp
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.100f611a
add esp, 0x58
ret
lea ecx, [esp + 0x30]
call fcn.100e7e56
mov byte [esp + 0x68], 3
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x101615a8
push edi
call fcn.10048510
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x20], edi
jne 0x1001f92e
lea edx, [esp + 0x44]
push edx
mov ecx, ebp
call fcn.10009b80
mov dword [esp + 0x24], esi
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x30]
call fcn.100e819e
jmp 0x1001f8b2
lea eax, [edi*4]
push eax
call fcn.100f5b7c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001f94b
lea ecx, [esp + 0x44]
push ecx
jmp 0x1001f913
mov edx, edi
imul edx, edx, 0x510
push edx
call fcn.100f5b7c
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x1001f974
push ebx
call fcn.100f5c3f
add esp, 4
lea eax, [esp + 0x44]
push eax
jmp 0x1001f913
xor esi, esi
test edi, edi
jle 0x1001f9a8
mov ebp, eax
lea esp, [esp]
push 0x510
push 0
push ebp
mov dword [ebx + esi*4], 0
call fcn.100f6b80
add esi, 1
add esp, 0xc
add ebp, 0x510
cmp esi, edi
jl 0x1001f980
mov ebp, dword [esp + 0x1c]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x1001fb28
mov esi, dword [esp + 0x2c]
add esi, 0x100
jmp 0x1001f9d4
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x1001faf8
cmp eax, dword [esp + 0x38]
jge 0x1001faf8
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + eax*4]
lea edi, [esi - 0x100]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x1001f9f5
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov dword [esi + 4], edx
mov dword [esi], eax
mov dword [esi + 8], ecx
call fcn.1002c030
push 0
push 0
push edi
push 0x1001ed50
push 0
push 0
mov ebp, eax
call fcn.100f85a7
mov edi, dword [esp + 0x2c]
push ebp
mov dword [ebx + edi*4], eax
call fcn.1002c0d0
add esp, 0x1c
cmp dword [ebx + edi*4], 0
je 0x1001fa54
add edi, 1
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 0x510
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x1001f9d0
cmp dword [esp + 0x14], 0
jle 0x1001fb20
mov esi, dword [esp + 0x14]
add esi, 0xffffffff
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001fb20
mov ecx, dword [ebx + ebp*4]
lea eax, [esp + 0x28]
lea edi, [ebx + ebp*4]
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebp, esi
mov dword [edi], 0
jge 0x1001fadc
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 + 0x28]
sub dword [esp + 0x14], 1
sub esi, 1
test eax, eax
mov dword [esp + 0x18], esi
jne 0x1001fafd
cmp dword [esp + 0x14], eax
jg 0x1001fa85
jmp 0x1001fb20
jmp fcn.100e4be9
lea esi, [eax + 0x10c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001fb08
sub eax, edx
add eax, esi
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.1000c6a0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x1001fb50
mov eax, dword [esp + 0x2c]
add eax, 0x50c
mov ecx, edi
jmp 0x1001fb40
mov dword [eax], 1
add eax, 0x510
sub ecx, 1
jne 0x1001fb40
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x1001fb82
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x1001fb79
push eax
call fcn.1004f110
mov eax, dword [ebx + esi*4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx + esi*4], 0
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x1001fb58
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x58]
jne 0x1001fbde
xor eax, eax
test edi, edi
jle 0x1001fbde
mov edx, dword [esp + 0x2c]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x1001fbb4
add eax, 1
add ecx, 0x510
cmp eax, edi
jl 0x1001fba0
jmp 0x1001fbde
imul eax, eax, 0x510
lea esi, [eax + edx + 0x10c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001fbc6
sub eax, edx
add eax, esi
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.1000c6a0
push ebx
call fcn.100f5c3f
mov edx, dword [esp + 0x30]
push edx
call fcn.100f5c3f
mov dword [ebp + 0x10], ebp
add esp, 8
mov dword [ebp + 0x14], ebp
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov esi, eax
sub eax, ecx
add eax, 1
cmp eax, 0xffffffff
mov edi, ecx
ja 0x1001fc86
test eax, eax
jbe 0x1001fc86
cmp eax, 0x10
jbe 0x1001fc4a
cmp eax, 0x80
mov dword [esp + 0x28], eax
jbe 0x1001fc2e
push eax
call fcn.100e4ac0
jmp 0x1001fc38
lea eax, [esp + 0x28]
push eax
call fcn.100e4790
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], eax
add eax, ecx
mov dword [ebp], eax
cmp esi, edi
mov eax, dword [ebp + 0x14]
je 0x1001fc60
sub esi, edi
push esi
push edi
push eax
call fcn.100f7fd0
add esp, 0xc
add eax, esi
mov dword [ebp + 0x10], eax
mov byte [eax], 0
mov byte [esp + 0x68], 3
mov dword [esp + 0x24], 1
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x30]
call fcn.100e819e
jmp 0x1001f8b2
push 0x10161590
call fcn.100e4a20