Function at 0x10018fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x100c76b0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
cmp eax, 0xa
jl 0x10019032
call fcn.10018dc0
jmp 0x100194d5
mov eax, dword [0x1017eb54]
push ecx
mov esi, dword [eax + 0x18]
call fcn.10002d20
mov ecx, dword [0x1017eb54]
add esp, 4
mov edi, eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
test esi, esi
je 0x100194d5
test eax, eax
je 0x100194d5
test edi, edi
je 0x100194d5
push edi
mov dword [esp + 0x60], 0
call fcn.1000d9d0
push edi
call fcn.1000d9d0
push edi
call fcn.1000da10
push edi
call fcn.1000da10
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push 0x100d5fd4
xor esi, esi
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x2c], esi
call dword [eax]
test eax, eax
js 0x100194be
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x64]
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
test eax, eax
js 0x100194aa
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x58]
push edx
push 0x100d6034
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x100194aa
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x100194aa
mov dword [esp + 0x68], esi
lea edx, [esp + 0x68]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1b0]
test eax, eax
js 0x1001911a
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1001911a
mov eax, dword [ecx]
push esi
push esi
push ecx
call dword [eax + 0x11c]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
js 0x1001949a
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1001949a
mov dword [esp + 0x50], esi
lea edx, [esp + 0x54]
mov dword [esp + 0x54], esi
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x24]
mov esi, dword [esp + 0x54]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10057d25
add esp, 4
lea ecx, [esi*4]
mov edi, eax
mov dword [esp + 0x18], edi
push ecx
push 0
push edi
call fcn.10058a40
xor esi, esi
add esp, 0xc
mov dword [esp + 0x1c], esi
test edi, edi
je 0x10019498
mov dword [esp + 0x7c], edi
xor edi, edi
mov dword [esp + 0x4c], esi
cmp dword [esp + 0x54], esi
jle 0x10019478
lea esi, [edi + 0x16]
lea ecx, [ecx]
push 0x14
call dword [0x100ce210]
mov word [esp + 0x24], si
mov dword [esp + 0x2c], edi
mov dword [esp + 0x90], 0
mov word [esp + 0x34], si
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x50]
mov byte [esp + 0x90], 1
movdqu xmm0, xmmword [esp + 0x24]
mov ecx, dword [esp + 0x60]
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [esp + 0x58]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
mov esi, eax
lea eax, [esp + 0x34]
push eax
call dword [0x100ce3bc]
lea eax, [esp + 0x24]
mov dword [esp + 0x90], 0xffffffff
push eax
call dword [0x100ce3bc]
test esi, esi
js 0x100192dc
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x100192dc
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
push 0x100d6004
push ecx
call dword [eax]
test eax, eax
js 0x100192dc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100192dc
push 0x1017d628
push eax
call fcn.1000ef50
test eax, eax
je 0x100192d2
lea eax, [esp + 0x6c]
push eax
call dword [0x100ce3c0]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x6c]
push edx
push 0
push 0x100e6688
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x100192d2
cmp word [esp + 0x6c], 8
jne 0x100192d2
mov eax, dword [esp + 0x74]
test eax, eax
je 0x100192d2
push 0x100e6fac
push eax
call fcn.1005803c
add esp, 8
test eax, eax
je 0x100192d2
sub eax, dword [esp + 0x74]
test eax, 0xfffffffe
jne 0x100192d2
mov eax, dword [esp + 0x7c]
mov dword [eax], edi
add eax, 4
inc dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc edi
mov esi, 0x16
cmp edi, dword [esp + 0x54]
jl 0x100191b0
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10019478
call fcn.10011a30
cdq
idiv esi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
mov ecx, 0x16
mov word [esp + 0x34], cx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x90], 2
mov word [esp + 0x24], cx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
mov byte [esp + 0x90], 3
movdqu xmm0, xmmword [esp + 0x34]
mov ecx, dword [esp + 0x60]
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [esp + 0x48]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
mov edi, dword [0x100ce3bc]
mov esi, eax
lea eax, [esp + 0x24]
push eax
call edi
lea eax, [esp + 0x34]
mov dword [esp + 0x90], 0xffffffff
push eax
call edi
test esi, esi
js 0x10019478
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x10019478
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
push 0x100d6004
push ecx
call dword [eax]
test eax, eax
js 0x10019478
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1001947c
mov ecx, dword [0x1017eb54]
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push eax
push edi
call fcn.1000de90
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
push 0
push 0x10018d70
push 0
push 0
call fcn.1005a00c
add esp, 0x18
mov esi, eax
push 0x2710
push esi
call dword [0x100ce230]
cmp eax, 0x102
je 0x1001944d
cmp eax, 0xffffffff
je 0x1001944d
lea eax, [esp + 0x7c]
push eax
push esi
call dword [0x100ce260]
xor eax, eax
cmp dword [esp + 0x7c], 1
push esi
sete al
mov dword [esp + 0x24], eax
call dword [0x100ce160]
push dword [esp + 0x18]
call fcn.10057ced
mov eax, dword [esp + 0x5c]
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100194ae
push esi
mov dword [esp + 0x24], 0
call dword [0x100ce160]
push dword [esp + 0x18]
call fcn.10057ced
mov eax, dword [esp + 0x5c]
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100194ae
mov edi, dword [esp + 0x14]
push dword [esp + 0x18]
call fcn.10057ced
mov eax, dword [esp + 0x5c]
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100194ae
xor esi, esi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x100194ae
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x100194d5
jmp 0x100194c2
mov edi, dword [esp + 0x14]
call fcn.10018c50
mov edx, dword [esp + 0x48]
mov ecx, edi
lea edx, [edx + 1]
call fcn.10018fe0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100585a6
mov esp, ebp
pop ebp
ret