Function at 0x10021250
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x100c7b30
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
mov dword [esp + 0x84], 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 + 0x98]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x1c], esi
mov edi, ecx
mov dword [esp + 0x14], edi
cmp dword [ebp + 8], 0xa
jl 0x100212ab
call fcn.10021050
jmp 0x100218cd
push edi
call dword [0x100ce520]
test eax, eax
je 0x100218cd
test esi, esi
je 0x100218cd
mov eax, dword [0x1017eb54]
push edi
mov esi, dword [eax + 0x18]
call fcn.10002d20
add esp, 4
mov edi, eax
test esi, esi
je 0x100218cd
push edi
call dword [0x100ce520]
test eax, eax
je 0x100218cd
push edi
mov dword [esp + 0x74], 0
call fcn.1000d9d0
push edi
call fcn.1000d9d0
push edi
call fcn.1000da10
push edi
call fcn.1000da10
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x70]
push ecx
push 0x100d5fd4
push esi
mov eax, dword [esi]
mov dword [esp + 0x34], 0
call dword [eax]
test eax, eax
js 0x100218b6
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x74]
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
test eax, eax
js 0x1002189f
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x68]
push edx
push 0x100d6034
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x1002189f
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1002189f
mov dword [esp + 0x78], 0
lea edx, [esp + 0x78]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1b0]
test eax, eax
js 0x100213ac
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x100213ac
mov eax, dword [ecx]
push 0
push 0
push ecx
call dword [eax + 0x11c]
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
js 0x1002188f
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x1002188f
mov dword [esp + 0x60], 0
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x24]
mov esi, dword [esp + 0x64]
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 + 0x30], edi
push ecx
push 0
push edi
call fcn.10058a40
xor esi, esi
add esp, 0xc
mov dword [esp + 0x20], esi
test edi, edi
je 0x1002188b
mov dword [esp + 0x2c], edi
xor edi, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x64], esi
jle 0x1002186b
lea esi, [edi + 0x16]
push 0x14
call dword [0x100ce210]
mov word [esp + 0x34], si
mov dword [esp + 0x3c], edi
mov dword [esp + 0xa0], 0
mov word [esp + 0x44], si
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x60]
mov byte [esp + 0xa0], 1
movdqu xmm0, xmmword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
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 + 0x68]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call dword [0x100ce3bc]
lea eax, [esp + 0x34]
mov dword [esp + 0xa0], 0xffffffff
push eax
call dword [0x100ce3bc]
test esi, esi
js 0x1002160b
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1002160b
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
push 0x100d6004
push ecx
call dword [eax]
test eax, eax
js 0x1002160b
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1002160b
push 0x1017d6d8
push eax
call fcn.1000ef50
test eax, eax
je 0x10021601
mov esi, dword [0x1017d690]
lea eax, [esi + 0x458]
test eax, eax
jne 0x10021530
mov dword [esp + 0x24], eax
jmp 0x10021544
mov ecx, dword [esp + 0x5c]
push eax
call fcn.100127a0
mov esi, dword [0x1017d690]
mov dword [esp + 0x24], eax
lea ecx, [esi + 0x19c]
test ecx, ecx
jne 0x10021552
xor edi, edi
jmp 0x10021564
push ecx
mov ecx, dword [esp + 0x60]
call fcn.100127a0
mov esi, dword [0x1017d690]
mov edi, eax
lea ecx, [esi + 0x19c]
mov edx, ecx
lea eax, [edx + 2]
mov dword [esp + 0x8c], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10021576
sub edx, dword [esp + 0x8c]
sar edx, 1
je 0x10021590
test edi, edi
jne 0x100215ea
mov edx, ecx
lea eax, [edx + 2]
mov dword [esp + 0x8c], eax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100215a0
sub edx, dword [esp + 0x8c]
sar edx, 1
jne 0x1002177d
lea edx, [esi + 0x458]
lea eax, [edx + 2]
mov dword [esp + 0x8c], eax
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100215d0
sub edx, dword [esp + 0x8c]
sar edx, 1
je 0x1002177d
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10020ee0
test eax, eax
jne 0x100217e5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc edi
mov esi, 0x16
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x64]
jl 0x10021453
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x1002186b
call fcn.10011a30
cdq
idiv esi
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + edx*4]
mov ecx, 0x16
mov word [esp + 0x44], cx
mov dword [esp + 0x4c], eax
mov dword [esp + 0xa0], 2
mov word [esp + 0x34], cx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x60]
mov byte [esp + 0xa0], 3
movdqu xmm0, xmmword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
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 edi, dword [0x100ce3bc]
mov esi, eax
lea eax, [esp + 0x34]
push eax
call edi
lea eax, [esp + 0x44]
mov dword [esp + 0xa0], 0xffffffff
push eax
call edi
test esi, esi
js 0x1002186b
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1002186b
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
push 0x100d6004
push ecx
call dword [eax]
test eax, eax
js 0x1002186b
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1002186f
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 + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
push 0
push 0x10020e80
push 0
push 0
call fcn.1005a00c
add esp, 0x18
mov esi, eax
push 0x2710
push esi
call dword [0x100ce230]
lea eax, [esp + 0x8c]
push eax
push esi
call dword [0x100ce260]
xor eax, eax
cmp dword [esp + 0x8c], 1
push esi
sete al
mov dword [esp + 0x2c], eax
call dword [0x100ce160]
push dword [esp + 0x30]
call fcn.10057ced
mov eax, dword [esp + 0x6c]
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100218a3
mov edx, ecx
lea eax, [edx + 2]
mov dword [esp + 0x8c], eax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10021790
sub edx, dword [esp + 0x8c]
sar edx, 1
je 0x100217ae
test edi, edi
je 0x100215fd
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100217b1
sub ecx, edx
sar ecx, 1
jne 0x100215fd
lea eax, [esi + 0x458]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100217d0
sub eax, edx
sar eax, 1
jne 0x100215fd
lea eax, [esp + 0x7c]
push eax
call dword [0x100ce3c0]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x7c]
push edx
push 0
push 0x100e6688
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x100215fd
cmp word [esp + 0x7c], 8
jne 0x100215fd
mov eax, dword [esp + 0x84]
test eax, eax
je 0x100215fd
push 0x100e6fac
push eax
call fcn.1005803c
mov edi, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x10021601
sub eax, dword [esp + 0x84]
test eax, 0xfffffffe
jne 0x10021601
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
add eax, 4
inc dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x10021601
mov edi, dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.10057ced
mov eax, dword [esp + 0x6c]
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100218a3
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x100218a3
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0x28], 0
jne 0x100218cd
jmp 0x100218ba
mov edi, dword [esp + 0x14]
call fcn.10020d60
mov eax, dword [ebp + 8]
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.10021250
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100585a6
mov esp, ebp
pop ebp
ret 4