Function at 0x10008a10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x10], ecx
push 0x44
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x40e0
push eax
call fcn.10040790
add esp, 0xc
mov dword [ebp - 0x20], 0x100ad738
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1001cde7
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10008a6b
mov edx, dword [ebp - 0x18]
push edx
call fcn.1001d1fb
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x40dd], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x40da], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x29], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x407c
call fcn.10012760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40a4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x416c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4130
call fcn.10013a40
mov ecx, dword [ebp - 0x10]
add ecx, 0x413c
call fcn.10013a40
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x40dc], 1
mov dword [ebp - 0x14], 0
jmp 0x10008af4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ecx]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jae 0x10008b64
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
imul eax, dword [ebp - 0x14], 0x18
mov ecx, dword [ebp - 0x48]
add eax, dword [ecx]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x413c
call fcn.10016150
jmp 0x10008aeb
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 4
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov eax, ecx
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
mov dword [edx + 0x40fc], eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x100040b0
push 0
push 0
call fcn.10053104
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x416c], eax
mov dword [ebp - 0x68], 0x100ad738
mov eax, dword [ebp - 0x68]
push eax
call fcn.1001ce5e
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10008bf8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1001d1fb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4