Function at 0x100286f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d0
mov eax, dword [0x1004a040]
xor eax, esp
mov dword [esp + 0x1cc], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], esi
cmp dword [esi + 0x58], 0
jge 0x10028787
test byte [esi + 4], 2
lea eax, [esp + 0x7c]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x7c], Ordinal_2
push eax
mov dword [esp + 0x84], 0x1b00d9
je 0x1002877b
mov dword [esp + 0x84], 0x20002
call fcn.1002b7c0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x100287e2
mov eax, dword [0x1004ad74]
test eax, eax
je 0x100287d8
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100287fe
mov eax, dword [0x1004ad74]
test eax, eax
je 0x100287f8
dec dword [eax + 0x374]
push ecx
call edx
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x10028864
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x10028864
mov ecx, dword [0x1004ad74]
test ecx, ecx
je 0x10028850
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x100288a1
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x100288a1
mov eax, dword [0x1004ad74]
test eax, eax
je 0x1002888f
inc dword [eax + 0x374]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x3c], eax
mov edi, eax
imul ecx, dword [esp + 0x48], 0xc4
push ecx
push 0
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x50]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0
cmp dword [esi + 0x4c], 0
jle 0x10028a14
mov eax, dword [esp + 0x40]
xor edx, edx
add eax, 0xa4
mov dword [esp + 0x20], edx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x34], edx
jle 0x10028cdc
mov edi, dword [esp + 8]
or eax, 0xffffffff
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1002893d
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x10028932
mov dword [edi - 4], edx
mov eax, edx
jmp 0x10028935
or eax, 0xffffffff
inc edx
mov ecx, eax
cmp edx, dword [esi + 0x34]
jl 0x10028915
mov edi, dword [esp + 0x3c]
cmp ecx, 0xffffffff
je 0x10028cdc
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1001eee0
mov ecx, dword [esp + 8]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x14], ecx
call fcn.1001f1b0
add esp, 4
test eax, eax
je 0x10028cdc
mov eax, dword [esp + 0x10]
mov edx, 0x10045b40
mov esi, dword [esp + 8]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x100289cf
nop word [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x100289cb
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x100289b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x30]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [esp + 8], esi
inc eax
mov esi, dword [esp + 0x38]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [esp + 0x20]
add edx, 0x78
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [esp + 8]
mov dword [esp + 0x20], edx
jl 0x100288f3
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 8], esi
test eax, eax
jle 0x10028ce6
mov edx, dword [esp + 0x40]
add edx, 0xa8
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], edx
mov eax, dword [edx - 8]
lea esi, [edx + 4]
mov ecx, esi
lea edi, [eax + eax*2]
mov eax, dword [edx - 4]
add eax, 0x20
mov dword [esp + 0x14], edi
sar eax, 5
push eax
call fcn.1001dc60
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
shl eax, 2
push eax
push 0
push dword [ecx + 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x10028aa2
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.1001dc60
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x20], eax
cmp word [eax], 0
je 0x10028b70
nop word [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x10028b70
movzx edi, word [eax]
cmp edi, ecx
ja 0x10028b5b
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [esp + 0x3c]
sar esi, 5
mov dword [esp + 0x10], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10028b4a
mov ecx, dword [esp + 0xc]
mov edx, edi
add ecx, 0xffffff58
call fcn.1001f6c0
mov edx, dword [esp + 0xc]
test eax, eax
je 0x10028b4e
inc dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
or dword [eax + esi*4], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10028ae0
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp word [eax], 0
jne 0x10028ac0
add edx, 0xc4
sub dword [esp + 0x30], 1
mov dword [esp + 0xc], edx
jne 0x10028a38
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add ecx, 0xc0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov esi, dword [ecx - 0x18]
cmp esi, dword [ecx - 4]
jle 0x10028c0d
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10028bb7
inc dword [eax + 0x374]
lea eax, [esi*4]
push eax
call dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add esp, 4
mov edi, eax
mov edx, dword [ecx]
test edx, edx
je 0x10028c08
mov ecx, dword [ecx - 8]
shl ecx, 2
push ecx
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x10028bfc
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10028bfc
dec dword [eax + 0x374]
push ecx
call dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], edi
mov dword [ecx - 4], esi
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 0x14]
mov dword [esp + 0x30], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x4c], eax
cmp esi, eax
jae 0x10028c86
xor edx, edx
mov dword [esp + 0x18], edx
mov eax, dword [esi]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10028c72
xor edi, edi
mov esi, 1
nop dword [eax]
test esi, eax
je 0x10028c66
and edx, 0xffffffe0
lea eax, [esp + 0x10]
add edx, edi
add ecx, 0xfffffff8
push eax
mov dword [esp + 0x14], edx
call fcn.1001dd30
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x10028c40
mov esi, dword [esp + 0x30]
add esi, 4
add edx, 0x20
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], edx
cmp esi, dword [esp + 0x4c]
jb 0x10028c28
mov edx, dword [ecx - 0xc]
test edx, edx
je 0x10028cbd
mov eax, dword [0x1004ad74]
mov dword [ecx - 0x10], 0
mov dword [ecx - 0x14], 0
test eax, eax
je 0x10028caa
dec dword [eax + 0x374]
push edx
call dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx - 0xc], 0
add ecx, 0xc4
sub dword [esp + 0x20], 1
mov dword [esp + 0xc], ecx
jne 0x10028ba0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 8]
jmp 0x10028cec
mov byte [esp + 0x2b], 0
jmp 0x10029cee
xor esi, esi
mov dword [esp + 8], esi
cmp dword [esp + 0x44], 0
jle 0x10028d49
mov esi, dword [esp + 0x2c]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10028d35
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10028d25
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x30], eax
sub edi, 1
jne 0x10028d02
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 8]
test edi, edi
je 0x10028d6c
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10028d5c
dec dword [eax + 0x374]
push edi
call dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x3c], 0
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x30], edi
test esi, esi
jle 0x10028de7
cmp esi, 8
mov eax, esi
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x10028deb
mov ecx, dword [0x1004ad74]
test ecx, ecx
je 0x10028d9f
inc dword [ecx + 0x374]
mov edi, dword [esp + 0x1c]
shl eax, 4
push eax
call edi
mov edx, dword [0x1004ad74]
add esp, 4
cmp esi, 8
mov dword [esp + 0xc], eax
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test edx, edx
je 0x10028dcd
inc dword [edx + 0x374]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call edi
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
jmp 0x10028deb
mov dword [esp + 0xc], edi
mov eax, esi
shl eax, 4
push eax
push 0
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x54]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x100291ab
mov esi, dword [esp + 0x40]
xor edi, edi
add esi, 0x98
mov dword [esp + 0x18], edi
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
nop dword [eax + eax]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1002918f
mov eax, dword [esp + 0x44]
add dword [esp + 0x44], edx
add dword [esp + 0x14], edx
shl eax, 4
add eax, dword [esp + 0xc]
mov dword [esi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x30]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x38]
mov dword [esi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + edi + 0x10]
add edx, edi
mov dword [esi - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esi - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esi - 0x18], 0
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [esi - 8], al
mov al, byte [edx + 0x18]
mov byte [esi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x10045e58]
mov dword [esp + 0x54], edx
jbe 0x10028f1f
mov edi, dword [esi - 0x94]
mov eax, dword [esi - 0x7c]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [esp + 8]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [esp + 0x18]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [esp + 8]
movd xmm0, eax
jmp 0x10028f45
mov edx, dword [esi - 0x84]
mov eax, dword [esi - 0x94]
xorps xmm1, xmmword [0x10046100]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0x10]
divss xmm1, xmm0
movss dword [esp + 0x24], xmm1
cmp dword [esi + 0x20], ecx
jle 0x10029187
movzx eax, dx
xor edi, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], eax
nop word [eax + eax]
mov edx, dword [esi + 0x28]
mov edx, dword [edx + ecx*4]
lea ecx, [esi - 0x98]
call fcn.1001f6c0
mov ecx, dword [esp + 0x54]
mov edx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x70], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x68], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x74]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x14]
mulss xmm0, xmm1
push ecx
lea ecx, [esi - 0x98]
movss dword [esp + 0x60], xmm0
call fcn.1001fad0
add esp, 0x10
test eax, eax
jne 0x10029000
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0x50], eax
jmp 0x10029117
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x70]
addss xmm0, dword [0x10045e58]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x7c]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x74], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mulss xmm0, dword [esp + 0x70]
addss xmm0, dword [0x10045e58]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x78]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x70], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov edx, dword [esp + 0x70]
add esp, 8
fstp qword [esp + 0x58]
movsd xmm0, qword [esp + 0x58]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub ecx, eax
movss xmm1, dword [esp + 0x24]
mov eax, dword [esi - 4]
add ecx, edx
mov edx, dword [esp + 0x54]
dec cx
add cx, word [edx + 0x14]
mov word [edi + eax + 4], cx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 8]
mov eax, dword [esi - 4]
dec cx
add cx, word [edx + 0x18]
add cx, word [esp + 0x50]
mov word [edi + eax + 6], cx
mov eax, dword [esi - 4]
movzx ecx, word [edi + eax + 6]
movzx eax, word [edi + eax + 4]
add edi, 0x10
imul ecx, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esi + 0x20]
jl 0x10028f80
mov edi, dword [esp + 0x18]
jmp 0x1002918b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esi, 0xc4
add edi, 0x78
sub dword [esp + 0x10], 1
mov dword [esp + 8], esi
mov dword [esp + 0x18], edi
jne 0x10028e50
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test ecx, ecx
jg 0x1002921f
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100291d6
sqrtsd xmm0, xmm0
jmp 0x100291db
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10045f68]
jb 0x100291fb
mov ecx, 0x1000
jmp 0x1002921f
comiss xmm0, dword [0x10045f64]
jb 0x1002920b
mov ecx, 0x800
jmp 0x1002921f
comiss xmm0, dword [0x10045f58]
mov ecx, 0x200
mov eax, 0x400
cmovae ecx, eax
push 0x2c
lea eax, [esp + 0xa8]
mov dword [edi + 0x1c], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029253
inc dword [eax + 0x374]
push 0x30
call dword [esp + 0x20]
mov ecx, dword [0x1004ad74]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
sub eax, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x1002927e
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [esp + 0x20]
add esp, 4
test esi, esi
je 0x10029309
test eax, eax
je 0x100292f7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0xd4], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0xc0], ecx
push eax
mov ecx, esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xcc], 1
mov dword [esp + 0xd0], 1
mov dword [esp + 0xc8], 0
call fcn.1001e210
add esp, 0xc
jmp 0x10029330
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029306
dec dword [eax + 0x374]
push esi
jmp 0x1002931e
test eax, eax
je 0x10029325
mov ecx, dword [0x1004ad74]
test ecx, ecx
je 0x1002931d
dec dword [ecx + 0x374]
push eax
call dword [esp + 0x30]
add esp, 4
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov esi, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
test esi, esi
jle 0x10029370
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10029370
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029361
inc dword [eax + 0x374]
shl ecx, 4
push ecx
call dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x40]
add esp, 0xc
test eax, eax
jle 0x100293bf
mov edx, dword [edi + 0x48]
mov edi, eax
mov ecx, dword [esp + 0x14]
add ecx, 6
add edx, 6
nop word [eax + eax]
movzx eax, word [edx - 2]
lea edx, [edx + 0x1c]
mov word [ecx - 2], ax
lea ecx, [ecx + 0x10]
movzx eax, word [edx - 0x1c]
mov word [ecx - 0x10], ax
sub edi, 1
jne 0x100293a0
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push esi
call fcn.1001e6e0
add esp, 4
test esi, esi
jle 0x10029424
mov edx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [esp + 0x18]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10029415
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x18]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x100293e1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10029444
mov ecx, dword [0x1004ad74]
test ecx, ecx
je 0x1002943c
dec dword [ecx + 0x374]
push eax
call dword [esp + 0x30]
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x100294c3
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xa8
mov dword [esp + 0x24], eax
nop
mov eax, dword [esi]
test eax, eax
je 0x100294b2
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 8]
push eax
call fcn.1001e6e0
xor ecx, ecx
add esp, 4
mov dword [esp + 0x10], ecx
cmp dword [esi], ecx
jle 0x100294b2
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x100294a6
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc ecx
add edx, 0x10
mov dword [esp + 0x10], ecx
cmp ecx, dword [esi]
jl 0x10029482
add esi, 0xc4
sub dword [esp + 0x24], 1
jne 0x10029460
mov esi, dword [esp + 0x48]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x100294f1
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x10045ecc]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x1004ad74]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x10029535
inc dword [eax + 0x374]
push ecx
call dword [esp + 0x20]
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0xc8], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0xb0], eax
test esi, esi
jle 0x10029703
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x100296dc
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0xb0]
call fcn.10024cf0
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x10045ecc]
movss dword [esp + 0x34], xmm1
lahf
test ah, 0x44
jnp 0x100296c6
xor esi, esi
nop
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100460e0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10040300
movss xmm1, dword [esp + 0x34]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xd0], dl
inc esi
cmp esi, 0x100
jb 0x100295d0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x100296ca
lea ecx, [edx + 4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x100296ae
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0x10], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x100296a2
mov eax, dword [esp + 0x10]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x10029697
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [esp + eax + 0xd0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10029680
mov eax, dword [esp + 0x10]
dec edi
add edx, eax
test edi, edi
jg 0x10029670
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
inc eax
add ecx, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
cmp eax, dword [edx + 0xa8]
jl 0x10029640
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], edx
jne 0x10029583
mov esi, dword [esp + 0xa8]
jmp 0x10029707
mov esi, dword [esp + 8]
cmp dword [esp + 0xcc], 0
je 0x10029720
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029720
dec dword [eax + 0x374]
push dword [esp + 0xcc]
call dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x10029741
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029741
dec dword [eax + 0x374]
push esi
mov esi, dword [esp + 0x30]
call esi
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
je 0x10029770
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029762
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x10029ca2
mov ecx, dword [esp + 0x40]
xor edx, edx
movss xmm3, dword [0x10045e9c]
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x50], eax
jmp 0x100297a4
mov edi, dword [esp + 0x38]
cmp dword [ecx + 0xa4], 0
je 0x10029c29
mov esi, dword [ecx]
mov eax, dword [edi + 0x54]
mov edi, dword [ecx + 0x18]
add eax, edx
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 7]
mov dword [esp + 0x24], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + esi + 6]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
add dx, cx
movsx ecx, dx
lea edx, [edi + 0x3c]
sub eax, ecx
mov dword [esp + 0x34], ecx
cmp byte [esi + 0x3c], 0
lea ecx, [edi + 0x38]
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
movd xmm0, eax
lea eax, [edi + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x6c], eax
divss xmm1, xmm0
movss dword [esp + 0x64], xmm1
jne 0x10029927
mov ecx, edi
call fcn.1002a1a0
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [esp + 0x38]
xorps xmm5, xmm5
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
movd xmm0, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [eax], esi
mov eax, dword [esp + 0x44]
movd xmm1, ecx
mov dword [eax], edx
xor eax, eax
movd xmm3, eax
mov eax, dword [esp + 0x10]
punpckldq xmm1, xmm3
movd xmm3, dword [esp + 0x34]
movd xmm2, eax
punpckldq xmm2, xmm0
movd xmm0, ecx
xor ecx, ecx
cvtdq2ps xmm0, xmm0
punpckldq xmm2, xmm1
comiss xmm0, xmm5
movd xmm0, eax
cvtdq2ps xmm0, xmm0
seta cl
xor eax, eax
cvtdq2ps xmm4, xmm2
lea ecx, [ecx*2 - 1]
movss xmm2, dword [esp + 0x64]
comiss xmm0, xmm5
mov dword [esp + 0x64], 0
movd xmm0, dword [esp + 0x64]
movaps xmm1, xmm2
unpcklps xmm2, xmm1
seta al
mulps xmm4, xmm2
movd xmm1, ecx
punpckldq xmm1, xmm3
lea eax, [eax*2 - 1]
movss xmm3, dword [0x10045e9c]
movd xmm2, eax
mov eax, dword [esp + 0x6c]
punpckldq xmm2, xmm0
punpckldq xmm2, xmm1
cvtdq2ps xmm0, xmm2
addps xmm4, xmm0
cvttps2dq xmm0, xmm4
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
shufps xmm0, xmm0, 0x55
movss dword [edi + 0x50], xmm0
jmp 0x10029933
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
movss xmm0, dword [eax]
inc word [edi + 0x40]
addss xmm0, xmm3
mov ecx, dword [esp + 8]
movss xmm2, dword [esi + 0x28]
movss dword [esp + 0x58], xmm2
mov dword [esp + 0x20], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x2c]
movss dword [esp + 0x78], xmm0
jle 0x10029c25
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0xbc]
mov edi, dword [esp + 0x20]
movss xmm0, dword [esi + 0x34]
movss dword [esp + 0x4c], xmm0
mov eax, dword [eax + edi*4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0x94]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
movss xmm1, dword [eax + ecx + 0x10]
comiss xmm0, xmm1
ja 0x100299c5
movss xmm0, dword [esi + 0x38]
minss xmm0, xmm1
movss dword [esp + 0x4c], xmm0
mov edi, dword [esp + 0x24]
ucomiss xmm1, xmm0
movss dword [esp + 0x10], xmm2
lahf
test ah, 0x44
jnp 0x100299fb
cmp byte [esi + 0x1c], 0
subss xmm0, xmm1
mulss xmm0, xmm3
je 0x100299f1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, dword [edx + 0x1c]
movss xmm1, dword [0x10045ecc]
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [edx + 0x20]
mov edx, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + ecx]
divss xmm1, xmm0
movss xmm0, dword [edx + ecx + 8]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edx + ecx + 0xc]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [edx + ecx + 0x14]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [edx + ecx + 0x18]
movss dword [esp + 0x70], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x68], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x98], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 6]
lea ecx, [edi + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x9c], xmm0
movd xmm0, eax
mov eax, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
inc eax
push eax
mulss xmm0, xmm1
movss dword [esp + 0xa4], xmm0
call fcn.1002b710
mov eax, dword [edi + 0x20]
xorps xmm6, xmm6
movss xmm0, dword [esp + 0x34]
mov esi, dword [edi + 0x28]
addss xmm0, xmm6
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
movss xmm3, dword [0x10045e9c]
mov eax, dword [esp + 0x64]
mov word [esi + edx*8 - 0x28], ax
addss xmm0, dword [esp + 0x10]
movss dword [esi + edx*8 - 0x20], xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x78]
movss dword [esi + edx*8 - 0x1c], xmm0
movss xmm0, dword [esp + 0x74]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x10]
movss dword [esi + edx*8 - 0x18], xmm0
movss xmm0, dword [esp + 0x70]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x78]
movss dword [esi + edx*8 - 0x14], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esi + edx*8 - 0x10], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esi + edx*8 - 0xc], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esi + edx*8 - 8], xmm0
movss xmm0, dword [esp + 0xa0]
movss dword [esi + edx*8 - 4], xmm0
mov eax, dword [ecx]
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [eax + 0x20]
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [ecx]
cmp byte [eax + 0x1c], 0
je 0x10029ba1
addss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [esp + 0x44]
mov byte [edi + 0x58], 1
movss xmm1, dword [esi + edx*8 - 8]
subss xmm1, dword [esi + edx*8 - 0x10]
mov eax, dword [eax]
add dword [esp + 0x14], 0x1c
movss xmm2, dword [esp + 0x58]
movd xmm0, dword [eax + 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, dword [eax + 0x20]
cvtdq2ps xmm0, xmm0
addss xmm1, dword [0x10045ee8]
cvttss2si ecx, xmm1
movss xmm1, dword [esi + edx*8 - 4]
subss xmm1, dword [esi + edx*8 - 0xc]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
mulss xmm1, xmm0
addss xmm1, dword [0x10045ee8]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
add dword [edi + 0x54], ecx
mov ecx, dword [esp + 8]
cmp eax, dword [ecx + 0xa4]
jl 0x10029981
mov edx, dword [esp + 0x1c]
add ecx, 0xc4
add edx, 0x78
sub dword [esp + 0x50], 1
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], edx
jne 0x100297a0
mov esi, dword [esp + 0x40]
add esi, 0xb4
nop
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10029c72
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029c66
dec dword [eax + 0x374]
mov edi, dword [esp + 0x2c]
push ecx
call edi
add esp, 4
jmp 0x10029c76
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi]
test ecx, ecx
je 0x10029c91
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029c8b
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
add esi, 0xc4
sub dword [esp + 0x48], 1
jne 0x10029c50
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.10029d50
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x2b], 1
test ecx, ecx
je 0x10029ccd
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029cc7
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10029cea
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029ce4
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x10029d0d
mov eax, dword [0x1004ad74]
test eax, eax
je 0x10029d01
dec dword [eax + 0x374]
mov esi, dword [esp + 0x2c]
push edi
call esi
add esp, 4
jmp 0x10029d11
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10029d2f
mov ecx, dword [0x1004ad74]
test ecx, ecx
je 0x10029d29
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1d4]
mov al, byte [esp + 0x2b]
pop edi
pop esi
xor ecx, esp
call fcn.1003f23d
mov esp, ebp
pop ebp
ret