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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x1004e00c]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
cmp dword [esi + 0x58], 0
jge 0x10027837
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 0x1002782b
mov dword [esp + 0x84], 0x20002
call fcn.1002aaf0
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 + 0x28], edx
test ecx, ecx
je 0x10027892
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027888
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100278ae
mov eax, dword [0x1004e688]
test eax, eax
je 0x100278a8
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 + 0x3c], 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], edx
test ecx, ecx
jle 0x10027914
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x10027914
mov ecx, dword [0x1004e688]
test ecx, ecx
je 0x10027900
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov edx, dword [esp + 0x68]
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x40], eax
test eax, eax
jle 0x10027951
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x10027951
mov eax, dword [0x1004e688]
test eax, eax
je 0x1002793f
inc dword [eax + 0x374]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x4c], eax
mov edi, eax
imul ecx, dword [esp + 0x48], 0xc4
push ecx
push 0
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x4c]
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 + 0x1c], 0
cmp dword [esi + 0x4c], 0
jle 0x10027ab3
mov edx, dword [esp + 0x3c]
xor eax, eax
add edx, 0xa4
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov ecx, dword [esi + 0x54]
mov dword [edx - 4], 0xffffffff
add ecx, eax
xor edx, edx
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x34], edx
jle 0x10027fa1
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x100279f3
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
mov eax, dword [esp + 8]
jne 0x100279e1
mov dword [eax - 4], edx
mov eax, edx
jmp 0x100279e4
mov eax, dword [eax - 4]
inc edx
cmp edx, dword [esi + 0x34]
jl 0x100279c2
cmp eax, 0xffffffff
je 0x10027fa1
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.10024720
mov ecx, dword [esp + 8]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x18], ecx
call fcn.1001e690
add esp, 4
test eax, eax
je 0x10027fa1
mov eax, dword [esp + 0x14]
mov esi, 0x1004abd4
mov edx, dword [esp + 8]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne esi, eax
mov dword [edx - 8], esi
cmp word [esi], 0
je 0x10027a72
movzx eax, word [esi + 2]
test ax, ax
je 0x10027a6e
mov ecx, eax
cmp dword [edx], ecx
cmovge ecx, dword [edx]
add esi, 4
mov dword [edx], ecx
cmp word [esi], 0
jne 0x10027a53
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
inc dword [edi + ecx*8]
mov ecx, dword [edx]
mov eax, dword [esp + 0x18]
cmp dword [edi + esi*8 + 4], ecx
cmovge ecx, dword [edi + esi*8 + 4]
add edx, 0xc4
mov dword [edi + esi*8 + 4], ecx
add eax, 0x78
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x18], eax
cmp ecx, dword [esi + 0x4c]
jl 0x100279a4
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x30], esi
test eax, eax
jle 0x10027d7a
mov edx, dword [esp + 0x3c]
add edx, 0xa8
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 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 + 0x38], edi
sar eax, 5
push eax
call fcn.1001d2e0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
shl eax, 2
push eax
push 0
push dword [ecx + 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x10027b41
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.1001d2e0
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 + 8]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x18], eax
movzx ecx, word [eax]
test cx, cx
je 0x10027c12
nop dword [eax + eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x10027c12
movzx edi, cx
cmp edi, eax
ja 0x10027bfb
nop dword [eax + eax]
mov eax, dword [esp + 0x38]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [esp + 0x4c]
sar esi, 5
mov dword [esp + 0x14], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10027bea
mov ecx, dword [esp + 8]
mov edx, edi
add ecx, 0xffffff58
call fcn.1001eba0
mov edx, dword [esp + 8]
test eax, eax
je 0x10027bee
inc dword [edx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
or dword [eax + esi*4], ecx
mov eax, dword [esp + 0x38]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [esp + 0x30]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10027b80
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
movzx ecx, word [eax]
test cx, cx
jne 0x10027b60
add edx, 0xc4
sub dword [esp + 0x2c], 1
mov dword [esp + 8], edx
jne 0x10027ad7
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add ecx, 0xc0
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
nop dword [eax]
mov esi, dword [ecx - 0x18]
cmp esi, dword [ecx - 4]
jle 0x10027cad
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027c57
inc dword [eax + 0x374]
lea eax, [esi*4]
push eax
call dword [esp + 0x68]
mov ecx, dword [esp + 0xc]
add esp, 4
mov edi, eax
mov edx, dword [ecx]
test edx, edx
je 0x10027ca8
mov ecx, dword [ecx - 8]
shl ecx, 2
push ecx
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x10027c9c
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027c9c
dec dword [eax + 0x374]
push ecx
call dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
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 + 0x2c], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x60], eax
cmp esi, eax
jae 0x10027d26
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [esi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10027d12
xor edi, edi
mov esi, 1
nop dword [eax]
test esi, eax
je 0x10027d06
and edx, 0xffffffe0
lea eax, [esp + 0x14]
add edx, edi
add ecx, 0xfffffff8
push eax
mov dword [esp + 0x18], edx
call fcn.1001d3b0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x10027ce0
mov esi, dword [esp + 0x2c]
add esi, 4
add edx, 0x20
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
cmp esi, dword [esp + 0x60]
jb 0x10027cc8
mov edx, dword [ecx - 0xc]
test edx, edx
je 0x10027d5d
mov eax, dword [0x1004e688]
mov dword [ecx - 0x10], 0
mov dword [ecx - 0x14], 0
test eax, eax
je 0x10027d4a
dec dword [eax + 0x374]
push edx
call dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [ecx - 0xc], 0
add ecx, 0xc4
sub dword [esp + 0x18], 1
mov dword [esp + 8], ecx
jne 0x10027c40
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x40], 0
jle 0x10027dd7
mov esi, dword [esp + 0x40]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10027dc3
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027db3
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x2c], eax
sub esi, 1
jne 0x10027d90
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
test edi, edi
je 0x10027dfa
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027dea
dec dword [eax + 0x374]
push edi
call dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x4c], 0
xor edi, edi
mov dword [esp + 0x54], 0
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x30], edi
call fcn.1002a990
test esi, esi
jle 0x10027e60
cmp esi, 8
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x10027e60
mov eax, dword [0x1004e688]
test eax, eax
je 0x10027e46
inc dword [eax + 0x374]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call dword [esp + 0x68]
add esp, 4
mov dword [esp + 0x2c], eax
mov edi, eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
shl ecx, 4
push ecx
push 0
push eax
mov dword [esp + 0x44], eax
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 ecx, dword [esp + 0x54]
xor eax, eax
xor edx, edx
mov dword [esp + 0x3c], eax
add esp, 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0xa8], eax
test ecx, ecx
jle 0x1002823c
mov edi, dword [esp + 0x3c]
add edi, 0x98
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edi
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10028222
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x2c]
shl eax, 4
add eax, dword [esp + 0x38]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [esp + 0x30], esi
add edx, esi
mov dword [esp + 0xa8], edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x34]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov eax, dword [edx + 0x10]
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x1004b304]
jbe 0x10027fab
mov esi, dword [esp + 8]
mov eax, 0x100
mov edi, dword [edi - 0x7c]
cwde
mov esi, dword [esi - 0x94]
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 6]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mov edi, dword [esp + 8]
add cx, ax
movsx eax, cx
sub edx, eax
movd xmm0, edx
jmp 0x10027fd1
mov byte [esp + 0x27], 0
jmp 0x10028bd4
mov edx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x1004b980]
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 + 0x34]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x68], eax
movss dword [esp + 0x20], xmm1
cmp dword [edi + 0x20], eax
jle 0x1002821a
mov dword [esp + 0x60], eax
nop dword [eax]
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.1001eba0
mov ecx, dword [esp + 0x40]
mov edx, eax
mov dword [esp + 8], 0
mov dword [esp + 0xac], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x70], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x78]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x14]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [esp + 0x60], xmm0
call fcn.1001efc0
add esp, 0x10
test eax, eax
jne 0x1002808a
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x50], esi
jmp 0x10028198
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [0x1004b304]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x80]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si esi, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [0x1004b304]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x78], xmm0
fld qword [esp + 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x78]
movsd xmm0, qword [esp + 0x78]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0xb4]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x78], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x58], xmm0
fld qword [esp + 0x58]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x58]
movsd xmm0, qword [esp + 0x58]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
movzx edx, ax
mov eax, dword [esp + 0x40]
movss xmm1, dword [esp + 0x20]
movzx ecx, word [eax + 0x14]
mov eax, dword [edi - 4]
sub cx, si
mov esi, dword [esp + 0x60]
dec cx
add cx, dx
dec dx
add cx, word [esp + 0x70]
mov word [esi + eax + 4], cx
mov eax, dword [esp + 0x40]
movzx ecx, word [eax + 0x18]
sub cx, word [esp + 8]
mov eax, dword [edi - 4]
add cx, dx
add cx, word [esp + 0x50]
mov edx, dword [esp + 0x18]
mov word [esi + eax + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], eax
add edx, ecx
mov dword [esp + 0x18], edx
cmp eax, dword [edi + 0x20]
jl 0x10028000
jmp 0x1002821e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], 0x78
add edi, 0xc4
sub dword [esp + 0x14], 1
mov dword [esp + 8], edi
jne 0x10027ed0
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test eax, eax
jg 0x100282b0
movd xmm0, edx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10028267
sqrtsd xmm0, xmm0
jmp 0x1002826c
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 [0x1004b46c]
jb 0x1002828c
mov eax, 0x1000
jmp 0x100282b0
comiss xmm0, dword [0x1004b468]
jb 0x1002829c
mov eax, 0x800
jmp 0x100282b0
comiss xmm0, dword [0x1004b45c]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [0x1004e688]
test eax, eax
je 0x100282e4
inc dword [eax + 0x374]
push 0x30
call dword [esp + 0x68]
mov ecx, dword [0x1004e688]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
sub eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x1002830f
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [esp + 0x68]
add esp, 4
test esi, esi
je 0x1002839e
test eax, eax
je 0x1002838c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x44]
push edx
push eax
mov dword [esp + 0xac], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0x98], ecx
push eax
mov ecx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 1
mov dword [esp + 0xa0], 0
call fcn.1001d860
add esp, 0xc
jmp 0x100283c5
mov eax, dword [0x1004e688]
test eax, eax
je 0x1002839b
dec dword [eax + 0x374]
push esi
jmp 0x100283b3
test eax, eax
je 0x100283ba
mov ecx, dword [0x1004e688]
test ecx, ecx
je 0x100283b2
dec dword [ecx + 0x374]
push eax
call dword [esp + 0x2c]
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
push dword [edi + 0x40]
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
call fcn.1002a990
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], eax
shl eax, 4
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x40], esi
jle 0x10028438
mov edx, dword [esp + 0x58]
xor ecx, ecx
add edx, 6
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [eax + ecx - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [eax + ecx - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x10028414
push dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
call fcn.1001dd10
mov eax, dword [esp + 0x54]
add esp, 4
test eax, eax
jle 0x100284a3
mov edx, dword [esp + 0x58]
xor esi, esi
add edx, 0xa
nop dword [eax]
cmp dword [edx + 2], 0
je 0x10028494
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [ecx + esi + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [ecx + esi + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x14]
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 + 0x14], eax
jne 0x10028460
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100284c3
mov ecx, dword [0x1004e688]
test ecx, ecx
je 0x100284bb
dec dword [ecx + 0x374]
push eax
call dword [esp + 0x2c]
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x10028544
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add esi, 0xa8
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x10028533
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 8]
push eax
call fcn.1001dd10
xor ecx, ecx
add esp, 4
mov dword [esp + 0x14], ecx
cmp dword [esi], ecx
jle 0x10028533
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x10028527
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x14]
inc ecx
add edx, 0x10
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi]
jl 0x10028503
add esi, 0xc4
sub dword [esp + 0x20], 1
jne 0x100284e1
mov esi, dword [esp + 0x48]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10028572
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 [0x1004b384]
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 [0x1004e688]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x100285b6
inc dword [eax + 0x374]
push ecx
call dword [esp + 0x68]
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 + 0xa0], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x88], eax
test esi, esi
jle 0x10028783
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x60], eax
mov edx, esi
mov dword [esp + 8], ecx
mov dword [esp + 0x68], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x1002875c
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0x88]
call fcn.10024270
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x1004b384]
movss dword [esp + 0x44], xmm1
lahf
test ah, 0x44
jnp 0x10028746
xor esi, esi
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004b930]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10041a90
movss xmm1, dword [esp + 0x44]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xb0], dl
inc esi
cmp esi, 0x100
jb 0x10028650
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1002874a
lea ecx, [edx + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x20], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x1002872e
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0x14], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x10028722
mov eax, dword [esp + 0x14]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x10028717
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [esp + eax + 0xb0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10028700
mov eax, dword [esp + 0x14]
dec edi
add edx, eax
test edi, edi
jg 0x100286f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
inc eax
add ecx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edx + 0xa8]
jl 0x100286c0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x60], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x68], edx
jne 0x10028604
mov esi, dword [esp + 0x80]
jmp 0x10028787
mov esi, dword [esp + 8]
cmp dword [esp + 0xa4], 0
je 0x100287a0
mov eax, dword [0x1004e688]
test eax, eax
je 0x100287a0
dec dword [eax + 0x374]
push dword [esp + 0xa4]
call dword [esp + 0x2c]
add esp, 4
test esi, esi
je 0x100287c1
mov eax, dword [0x1004e688]
test eax, eax
je 0x100287c1
dec dword [eax + 0x374]
push esi
mov esi, dword [esp + 0x2c]
call esi
mov ecx, dword [esp + 0x3c]
add esp, 4
test ecx, ecx
je 0x100287f0
mov eax, dword [0x1004e688]
test eax, eax
je 0x100287e2
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x10028b88
mov edx, dword [esp + 0x3c]
xor ecx, ecx
movss xmm3, dword [0x1004b354]
add edx, 4
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x10028824
mov edi, dword [esp + 0x34]
cmp dword [edx + 0xa4], 0
je 0x10028b10
mov eax, dword [edi + 0x54]
mov edi, dword [edx + 0x18]
add eax, ecx
mov esi, dword [edx]
mov dword [esp + 0x44], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 5]
mov dword [esp + 0x1c], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + esi + 4]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
mov edi, dword [esp + 0x1c]
add dx, cx
movsx eax, dx
mov dword [esp + 0x6c], eax
sub eax, dword [esp + 0x14]
cmp byte [esi + 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x44], xmm1
jne 0x10028948
mov ecx, edi
call fcn.10028f80
movd xmm1, dword [esp + 0x6c]
xorps xmm4, xmm4
mov eax, dword [esi + 0x10]
cvtdq2ps xmm1, xmm1
mov dword [edi + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x3c], esi
mov dword [edi + 0x38], ecx
movss xmm3, dword [0x1004b354]
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x44]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [esp + 0x14]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm2, eax
xor eax, eax
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x44]
seta al
cvtdq2ps xmm2, xmm2
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x4c], xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x50], xmm0
jmp 0x1002894d
movss xmm2, dword [edi + 0x4c]
inc word [edi + 0x40]
addss xmm2, xmm3
mov edx, dword [esp + 0x18]
movss xmm1, dword [esi + 0x28]
movss dword [esp + 0x78], xmm1
mov dword [esp + 0x40], 0
cmp dword [edx + 0xa4], 0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x2c]
movss dword [esp + 0x44], xmm0
jle 0x10028b0c
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edx + 0xbc]
mov edx, dword [edx + 0x94]
mov ecx, dword [esp + 0x40]
movss xmm7, dword [esi + 0x34]
movss xmm0, dword [edi + edx + 0x10]
comiss xmm7, xmm0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x6c], eax
ja 0x100289d0
movss xmm7, dword [esi + 0x38]
minss xmm7, xmm0
mov ecx, dword [esp + 0x34]
movaps xmm6, xmm1
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x10028a00
cmp byte [esi + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm3
je 0x100289fc
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [ecx + 0x1c]
sub esp, 0x1c
movss xmm3, dword [0x1004b384]
movss xmm2, dword [0x1004b384]
movzx eax, word [edi + edx]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
divss xmm3, xmm0
movzx eax, word [edi + edx + 2]
movd xmm0, dword [ecx + 0x20]
cvtdq2ps xmm0, xmm0
mov ecx, dword [esp + 0x38]
movd xmm4, eax
movzx eax, word [edi + edx + 4]
divss xmm2, xmm0
movd xmm1, eax
movzx eax, word [edi + edx + 6]
cvtdq2ps xmm4, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm2
mulss xmm4, xmm2
movss xmm2, dword [edi + edx + 8]
mulss xmm1, xmm3
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + edx + 0x18]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
xorps xmm4, xmm4
addss xmm0, xmm4
cvtdq2ps xmm5, xmm5
addss xmm0, dword [esp + 0x60]
mulss xmm5, xmm3
addss xmm2, xmm4
movss xmm3, dword [edi + edx + 0xc]
addss xmm3, xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm0
addss xmm2, xmm6
movss xmm0, dword [edi + edx + 0x14]
addss xmm0, xmm4
addss xmm3, dword [esp + 0x60]
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [esp + 0x88]
call fcn.100294b0
mov eax, dword [esp + 0x40]
add edi, 0x1c
mov edx, dword [esp + 0x18]
inc eax
movss xmm1, dword [esp + 0x78]
movss xmm3, dword [0x1004b354]
mov dword [esp + 0x40], eax
cmp eax, dword [edx + 0xa4]
jl 0x100289a0
mov ecx, dword [esp + 0x30]
add edx, 0xc4
add ecx, 0x78
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ecx
jne 0x10028820
mov esi, dword [esp + 0x3c]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10028b58
mov eax, dword [0x1004e688]
test eax, eax
je 0x10028b4c
dec dword [eax + 0x374]
mov edi, dword [esp + 0x28]
push ecx
call edi
add esp, 4
jmp 0x10028b5c
mov edi, dword [esp + 0x28]
mov ecx, dword [esi]
test ecx, ecx
je 0x10028b77
mov eax, dword [0x1004e688]
test eax, eax
je 0x10028b71
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
add esi, 0xc4
sub dword [esp + 0x48], 1
jne 0x10028b36
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.10028c30
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x27], 1
test ecx, ecx
je 0x10028bb3
mov eax, dword [0x1004e688]
test eax, eax
je 0x10028bad
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10028bd0
mov eax, dword [0x1004e688]
test eax, eax
je 0x10028bca
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x10028bf3
mov eax, dword [0x1004e688]
test eax, eax
je 0x10028be7
dec dword [eax + 0x374]
mov esi, dword [esp + 0x28]
push edi
call esi
add esp, 4
jmp 0x10028bf7
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10028c15
mov ecx, dword [0x1004e688]
test ecx, ecx
je 0x10028c0f
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1b4]
mov al, byte [esp + 0x27]
pop edi
pop esi
xor ecx, esp
call fcn.100407ae
mov esp, ebp
pop ebp
ret