Function at 0x10008200
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x100173c0]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jne 0x1000823a
pop edi
pop esi
mov eax, 0x45a
pop ebx
add esp, 0x2c
ret 0xc
mov eax, dword [esi + 0x14]
push ebp
cmp eax, ebx
je 0x10008258
pop ebp
mov dword [esp + 0xc], 0x4df
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
mov eax, dword [esp + 0x40]
mov edi, 1
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [esi + 0x30], edi
jne 0x10008274
mov eax, 0x400
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esi + 0x28], 0x4000
jne 0x10008298
lea edx, [esi + 4]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
jmp 0x100082b2
mov edx, dword [eax]
lea ecx, [esi + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x100082d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x10008363
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.100080c0
mov eax, dword [esi + 0x30]
imul eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esi + 0x34], eax
jne 0x100082f1
mov dword [esi + 0x34], edi
mov edx, dword [esi + 0x34]
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esi + 0x38], edi
je 0x10008414
mov ecx, dword [esi + 0x34]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x34]
xor edi, edi
cmp eax, ebx
jbe 0x1000836d
mov ebp, dword [sym.imp.MSVCRT.dll__beginthreadex]
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push 0x10008e60
push ebx
push ebx
call ebp
mov ecx, dword [esi + 0x38]
add esp, 0x18
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x38]
cmp dword [edx + edi*4], ebx
jne 0x1000835b
mov dword [esp + 0x10], 0xa4
mov eax, dword [esi + 0x34]
inc edi
cmp edi, eax
jb 0x10008332
cmp dword [esp + 0x10], ebx
jne 0x1000841c
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*4]
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esi + 0x18], edi
je 0x10008414
mov eax, dword [esi + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esi + 0x1c], ebx
jbe 0x100083db
xor edi, edi
mov eax, dword [esi + 0x18]
mov dword [edi + eax], 0xffffffff
mov ecx, dword [esi + 0x18]
lea edx, [edi + ecx + 4]
push edx
call ebp
mov eax, dword [esi + 0x18]
lea ecx, [edi + eax + 0x24]
push ecx
call ebp
mov eax, dword [esi + 0x1c]
inc ebx
add edi, 0x50
cmp ebx, eax
jb 0x100083b2
mov eax, dword [esi + 0x1c]
add eax, 0x1f
shr eax, 5
mov dword [esi + 0x24], eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esi + 0x20], edi
jne 0x10008431
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], ebx
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x18], ebx
mov dword [esp + 0x10], 0xe
mov ecx, esi
call fcn.10008480
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
mov ecx, dword [esi + 0x24]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esi + 0x40]
and ecx, 3
push edx
rep stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
call ebp
add esi, 0x58
mov ecx, 6
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
call ebp
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc