Function at 0x1001fe60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10161b89
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101b7324]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b7324]
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 0x1001ff13
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.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x1001ff01
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee4bd
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x100202d8
lea ecx, [esp + 0x30]
call fcn.100f1821
mov byte [esp + 0x6c], 2
push esi
lea edx, [esp + 0x34]
push edx
push 0x1016b5b4
push ebp
call fcn.1004a8d0
mov ebp, eax
add esp, 0x10
cmp ebp, esi
mov dword [esp + 0x1c], ebp
je 0x1001ff5a
lea edx, [ebp*4]
push edx
call fcn.100ff548
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x1001ffb8
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.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1b69
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0x10
jb 0x1001ff01
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee4bd
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
jmp 0x100202d8
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.100ff548
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x1002000f
push ebx
call fcn.100ff60b
add esp, 4
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.10009a70
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1b69
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x44]
call fcn.10006120
jmp 0x100202d8
test ebp, ebp
jle 0x10020041
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x510
push 0
push ecx
mov dword [ebx + esi*4], 0
call fcn.10100550
add dword [esp + 0x20], 0x510
add esi, 1
add esp, 0xc
cmp esi, ebp
jl 0x10020017
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x100201be
mov esi, dword [esp + 0x24]
add esi, 0x100
jmp 0x10020064
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x1002018b
cmp eax, dword [esp + 0x38]
jge 0x1002018b
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 0x10020085
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.1002d900
push 0
push 0
push ebp
push 0x1001f490
push 0
push 0
mov edi, eax
call fcn.10101ccf
mov ebp, dword [esp + 0x2c]
push edi
mov dword [ebx + ebp*4], eax
call fcn.1002d9a0
add esp, 0x1c
cmp dword [ebx + ebp*4], 0
je 0x100200e7
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 0x10020060
cmp dword [esp + 0x14], 0
jle 0x100201b6
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 0x100201b6
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 0x1002016f
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 0x10020190
cmp dword [esp + 0x14], eax
jg 0x10020118
jmp 0x100201b6
jmp fcn.100ee5b6
lea edx, [eax + 0x10c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x100201a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100201a0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.100099a0
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x100201e0
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 0x100201d0
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x10020212
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x10020209
push eax
call fcn.10051ed0
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 0x100201e8
cmp dword [esp + 0x58], 0
jne 0x1002026c
xor eax, eax
test ebp, ebp
jle 0x1002026c
mov edx, dword [esp + 0x24]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x10020244
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10020230
jmp 0x1002026c
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 0x10020256
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.100099a0
push ebx
call fcn.100ff60b
mov edx, dword [esp + 0x28]
push edx
call fcn.100ff60b
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.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x30]
call fcn.100f1b69
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x5c], 0x10
jb 0x100202cc
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100ee4bd
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.100ffae6
add esp, 0x5c
ret