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

Disassembly:
sub esp, 0x84
mov eax, dword [0x10083028]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [0x10083558]
xor ecx, ecx
push esi
push edi
mov edi, dword [esp + 0x90]
xorps xmm0, xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x48], ecx
mov eax, dword [edi]
mov byte [edi + 0x6f], 0
mov byte [esp + 0x3c], cl
mov dword [esp + 0x84], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], 1
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x74], xmm0
test eax, eax
jle 0x1003f7e2
xor esi, esi
xor edx, edx
mov ecx, dword [edi + 8]
mov eax, dword [edx + ecx + 8]
cmp eax, dword [edi + 0x24]
jl 0x1003f79e
cmp byte [edx + ecx + 0x28], 0
jne 0x1003f79e
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x38]
je 0x1003f728
movups xmm0, xmmword [edx + ecx]
movups xmmword [esi + ecx], xmm0
movups xmm0, xmmword [edx + ecx + 0x10]
movups xmmword [esi + ecx + 0x10], xmm0
movq xmm0, qword [edx + ecx + 0x20]
movq qword [esi + ecx + 0x20], xmm0
mov eax, dword [edx + ecx + 0x28]
mov dword [esi + ecx + 0x28], eax
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x48]
mov word [esi + ecx + 0x26], ax
mov ecx, dword [esi + ecx + 4]
test cl, 0x40
je 0x1003f73a
xor ecx, ecx
jmp 0x1003f746
test cl, 0x80
mov ecx, 0
setne cl
inc ecx
test eax, eax
jle 0x1003f789
mov eax, dword [edi + 8]
mov eax, dword [esi + eax - 0x28]
test al, 0x40
je 0x1003f759
xor eax, eax
jmp 0x1003f764
test al, 0x80
mov eax, 0
setne al
inc eax
test ecx, ecx
jne 0x1003f771
test eax, eax
je 0x1003f789
mov byte [esp + 0x3c], 1
cmp eax, 2
jne 0x1003f789
mov eax, dword [esp + 0x3c]
cmp ecx, 2
movzx eax, al
cmovne eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x48]
inc dword [esp + eax*4 + 0x64]
inc ecx
mov dword [esp + 0x48], ecx
add esi, 0x2c
jmp 0x1003f7cf
mov eax, dword [edi + 0x1c]
cmp eax, dword [edx + ecx]
jne 0x1003f7ad
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x14]
cmp eax, dword [edx + ecx]
jne 0x1003f7bc
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x18]
cmp eax, dword [edx + ecx]
mov ecx, dword [esp + 0x48]
jne 0x1003f7cf
mov dword [edi + 0x18], 0
inc dword [esp + 0x38]
add edx, 0x2c
mov eax, dword [edi]
cmp dword [esp + 0x38], eax
jl 0x1003f6d6
cmp eax, ecx
je 0x1003f84d
mov esi, dword [edi + 4]
cmp ecx, esi
jle 0x1003f849
test esi, esi
je 0x1003f7fc
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1003f801
mov eax, 8
cmp eax, ecx
mov edx, ecx
cmovg edx, eax
mov dword [esp + 0x4c], edx
cmp edx, esi
jle 0x1003f849
imul eax, edx, 0x2c
push eax
call fcn.100230e0
mov esi, eax
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
je 0x1003f83b
imul ecx, dword [edi], 0x2c
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + 8]
call fcn.10023120
add esp, 0x10
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [edi + 8], esi
mov dword [edi + 4], eax
mov dword [edi], ecx
mov eax, ecx
cmp byte [esp + 0x3c], 0
je 0x1003f86d
cmp eax, 1
jbe 0x1003f86d
push 0x10040c90
push 0x2c
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
mov edx, dword [esp + 0x64]
test edx, edx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
jle 0x1003f896
lea eax, [ecx + edx]
test eax, eax
jle 0x1003f896
mov eax, dword [esp + 0x50]
movss xmm1, dword [eax + 0x38fc]
jmp 0x1003f89d
mov eax, dword [esp + 0x50]
xorps xmm1, xmm1
movss dword [esp + 0x38], xmm1
xorps xmm0, xmm0
movss dword [esp + 0x6c], xmm1
test ecx, ecx
jle 0x1003f8bc
test edx, edx
jle 0x1003f8bc
movss xmm0, dword [eax + 0x38fc]
xor eax, eax
movss dword [esp + 0x3c], xmm0
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x18]
movss dword [esp + 0x78], xmm0
test eax, eax
je 0x1003f8e3
mov dword [esp + 0x48], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov edx, dword [edi + 0x68]
test edx, edx
je 0x1003fa1f
mov ecx, dword [edi]
xor eax, eax
test ecx, ecx
jle 0x1003fa18
mov esi, dword [edi + 8]
mov dword [esp + 0x4c], esi
cmp dword [esi], edx
je 0x1003f916
inc eax
add esi, 0x2c
mov dword [esp + 0x4c], esi
cmp eax, ecx
jl 0x1003f901
jmp 0x1003fa18
test esi, esi
je 0x1003fa18
test byte [esi + 4], 0x20
jne 0x1003fa18
movzx eax, word [edi + 0x6c]
mov ecx, esi
sub ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, word [edi + 0x6c]
movsx ecx, dx
add eax, ecx
js 0x1003fa18
cmp eax, dword [edi]
jge 0x1003fa18
mov edx, dword [edi + 8]
imul eax, eax, 0x2c
add edx, eax
mov dword [esp + 0x44], edx
mov eax, dword [edx + 4]
test al, 0x20
jne 0x1003fa18
xor eax, dword [esi + 4]
test al, 0xc0
jne 0x1003fa18
movups xmm0, xmmword [esi]
mov eax, ecx
neg eax
cmp word [esp + 0x34], 0
movups xmmword [esp + 0x54], xmm0
cmovle ecx, eax
movups xmm0, xmmword [esi + 0x10]
imul eax, ecx, 0x2c
mov ecx, dword [esp + 0x4c]
cmp word [esp + 0x34], 0
movups xmmword [esp + 8], xmm0
movq xmm0, qword [esi + 0x20]
mov esi, dword [esi + 0x28]
push eax
lea eax, [ecx + 0x2c]
movq qword [esp + 0x1c], xmm0
cmovle eax, edx
push eax
lea eax, [edx + 0x2c]
movzx edx, word [edi + 0x6c]
test dx, dx
cmovle ecx, eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x50]
add esp, 0xc
movups xmm0, xmmword [esp + 0x54]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x18]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], esi
test dword [edi + 0xc], 0x400000
je 0x1003fa07
call fcn.10023090
mov eax, dword [edi + 0x68]
mov ecx, dword [esp + 0x48]
cmp eax, dword [edi + 0x14]
cmove ecx, eax
mov dword [esp + 0x48], ecx
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0xc]
shr eax, 2
test al, 1
je 0x1003fbc8
mov eax, dword [0x10083558]
mov esi, dword [eax + 0x3f94]
movss xmm0, dword [eax + 0x38e8]
movaps xmm2, xmm0
mov dword [esp + 0x44], esi
addss xmm2, dword [eax + 0x3cfc]
movss xmm1, dword [esi + 0xf8]
movss dword [esp + 0x24], xmm1
movss xmm1, dword [esi + 0xfc]
movss dword [esp + 0x30], xmm1
movss xmm1, dword [edi + 0x28]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x2c]
movss dword [esi + 0xfc], xmm0
movss dword [esi + 0xf8], xmm1
addss xmm2, dword [edi + 0x28]
movss dword [edi + 0x28], xmm2
movups xmm0, xmmword [eax + 0x3994]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x58], xmm0
push 0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [0x10078200]
movss dword [esp + 0x68], xmm0
call fcn.10028e60
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0x15
movups xmmword [esp + 0x18], xmm0
call fcn.10028e60
push 0x50
push 0
push 0x1007a8f0
call fcn.10037d30
push 2
mov byte [esp + 0x4f], al
call fcn.100289b0
xor ecx, ecx
add esp, 0x20
mov dword [esp + 0x40], ecx
cmp byte [esp + 0x2f], cl
je 0x1003fb9f
mov dword [esp + 0x4c], ecx
cmp dword [edi], ecx
jle 0x1003fb86
xor eax, eax
mov dword [esp + 0x34], eax
nop
mov esi, dword [edi + 8]
add esi, eax
test dword [esi + 4], 0x200000
jne 0x1003fb76
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
jne 0x1003fb2d
mov ecx, 0x10079edc
jmp 0x1003fb35
mov ecx, dword [edi + 0x94]
add ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, dword [edi + 0x14]
cmp eax, dword [esi]
push 0
sete al
mov dword [esp + 0x24], 0
movzx eax, al
push eax
push ecx
call fcn.1003e750
mov ecx, dword [esp + 0x50]
add esp, 0x10
test al, al
mov eax, dword [esp + 0x34]
cmovne ecx, esi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
inc ecx
add eax, 0x2c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
cmp ecx, dword [edi]
jl 0x1003fb10
mov esi, dword [0x10083558]
call fcn.1001dd30
dec dword [esi + 0x5ca8]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
movss xmm0, dword [esp + 0x24]
movss dword [esi + 0xf8], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esi + 0xfc], xmm0
test ecx, ecx
je 0x1003fbc8
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x7c]
mov edx, dword [edi]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 0x4d7c]
cmp edx, ecx
jle 0x1003fc80
test ecx, ecx
je 0x1003fc0d
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 1
add eax, ecx
jmp 0x1003fc12
mov eax, 8
cmp eax, edx
mov esi, edx
cmovg esi, eax
cmp esi, ecx
jle 0x1003fc80
lea eax, [esi + esi*2]
shl eax, 2
push eax
call fcn.100230e0
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x30], eax
cmp dword [edx + 0x4d80], 0
je 0x1003fc70
mov ecx, dword [edx + 0x4d78]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
push dword [edx + 0x4d80]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x5c]
push dword [eax + 0x4d80]
call fcn.10023120
mov edx, dword [esp + 0x60]
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [edx + 0x4d80], eax
mov dword [edx + 0x4d7c], esi
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
movss xmm5, dword [0x10078204]
mov dword [esp + 0x44], 0xffffffff
mov dword [ecx + 0x4d78], edx
xor edx, edx
mov eax, dword [edi]
mov dword [esp + 0x4c], edx
mov byte [esp + 0x34], dl
mov dword [esp + 0x40], edx
test eax, eax
jle 0x1003fe81
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov esi, dword [edi + 8]
add esi, ecx
test edx, edx
je 0x1003fcc9
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0xc]
jge 0x1003fcd7
test dword [esi + 4], 0x200000
cmove edx, esi
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x34]
mov edx, 1
mov eax, dword [esi]
cmp eax, dword [edi + 0x14]
movzx ecx, cl
cmove ecx, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x1003fd08
mov edx, dword [esp + 0x50]
cmp dword [edx + 0x4a80], eax
cmove ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
jne 0x1003fd17
mov ecx, 0x10079edc
jmp 0x1003fd1f
mov ecx, dword [edi + 0x94]
add ecx, eax
movss xmm1, dword [esi + 0x1c]
xorps xmm0, xmm0
comiss xmm1, xmm0
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
jae 0x1003fdc4
mov eax, dword [0x10083558]
push ecx
mov dword [esp], 0xbf800000
push 1
push 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push ecx
push eax
call fcn.1001afa0
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov eax, dword [esp + 0x24]
movss xmm0, dword [esp + 0x18]
and eax, 0x100001
movss xmm5, dword [0x10078204]
movss xmm2, dword [ecx + 0x38e4]
addss xmm0, xmm2
cmp eax, 0x100000
je 0x1003fd9a
movss xmm1, dword [ecx + 0x3cfc]
addss xmm1, dword [ecx + 0x38fc]
jmp 0x1003fd9d
movaps xmm1, xmm5
mov eax, dword [0x10083558]
addss xmm1, xmm2
addss xmm1, xmm0
movss xmm0, dword [eax + 0x3cfc]
mulss xmm0, dword [0x1007a6bc]
mov eax, dword [esi + 4]
minss xmm1, xmm0
xorps xmm0, xmm0
movss dword [esi + 0x18], xmm1
test al, 0x40
je 0x1003fdd1
xor edx, edx
jmp 0x1003fddc
test al, 0x80
mov edx, 0
setne dl
inc edx
lea eax, [edx + edx*2]
cmp edx, dword [esp + 0x44]
jne 0x1003fdf1
mov ecx, dword [esp + 0x50]
movss xmm0, dword [ecx + 0x38fc]
mov ecx, dword [esp + edx*4 + 0x58]
addss xmm1, xmm0
mov dword [esp + 0x44], edx
addss xmm1, dword [esp + eax*4 + 0x68]
movss dword [esp + eax*4 + 0x68], xmm1
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0x58], eax
lea ecx, [ecx + ecx*2]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + 0x4d80]
mov dword [eax + ecx*4], edx
inc edx
movss xmm0, dword [esi + 0x18]
movss dword [eax + ecx*4 + 8], xmm0
movss dword [eax + ecx*4 + 4], xmm0
movss xmm0, dword [esi + 0x18]
mov ecx, dword [esp + 0x28]
maxss xmm0, xmm5
add ecx, 0x2c
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], ecx
movss dword [esi + 0x14], xmm0
mov eax, dword [edi]
cmp edx, eax
mov edx, dword [esp + 0x4c]
jl 0x1003fcb8
movss xmm0, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x68]
lea esi, [edi + 0x28]
movss xmm1, dword [esp + 0x80]
xorps xmm3, xmm3
addss xmm1, dword [esp + 0x84]
addss xmm0, dword [esp + 0x38]
movss xmm2, dword [esp + 0x74]
addss xmm2, dword [esp + 0x3c]
movss dword [esp + 0x44], xmm1
movaps xmm1, xmm0
movss dword [esp + 0x30], xmm0
addss xmm1, xmm3
movss dword [esp + 0x40], xmm2
addss xmm1, xmm2
addss xmm1, dword [esp + 0x44]
movss dword [edi + 0x44], xmm1
movss xmm0, dword [esi + 8]
subss xmm0, dword [esi]
comiss xmm1, xmm0
jbe 0x1003ff29
cmp eax, 1
jle 0x1003ff29
mov eax, dword [edi + 0xc]
test al, 0x10
jne 0x1003ff29
test al, al
jns 0x1003ff29
push edi
call fcn.100406d0
movss xmm2, dword [esp + 0x44]
mov ecx, eax
movss xmm5, dword [0x10078204]
add esp, 4
xorps xmm3, xmm3
test ecx, ecx
je 0x1003ff29
test dword [ecx + 4], 0x200000
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
jne 0x1003ff29
mov dword [edi + 0x14], eax
movss xmm1, dword [esp + 0x44]
movss xmm4, dword [esp + 0x30]
movss xmm0, dword [esi + 8]
addss xmm1, xmm4
subss xmm0, dword [esi]
comiss xmm0, xmm1
seta al
test al, al
je 0x1003ff60
subss xmm0, xmm4
subss xmm0, dword [esp + 0x44]
subss xmm2, xmm0
maxss xmm2, xmm3
jmp 0x1003ff67
movaps xmm2, xmm1
subss xmm2, xmm0
comiss xmm2, xmm5
jb 0x10040084
test byte [edi + 0xc], 0x40
jne 0x1003ff98
test al, al
jne 0x10040084
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x64]
add ecx, edx
mov dword [esp + 0x28], ecx
test al, al
je 0x1003ffac
mov eax, dword [esp + 0x7c]
add eax, edx
jmp 0x1003ffb2
test al, al
je 0x1003ff7e
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x64]
add eax, edx
mov ecx, dword [esp + 0x70]
jmp 0x1003ffb2
xor eax, eax
mov dword [esp + 0x28], ecx
lea esi, [eax + eax*2]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ecx
movss dword [esp], xmm2
shl esi, 2
mov eax, dword [eax + 0x4d80]
push ecx
add eax, esi
push eax
call fcn.1003ed10
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [esp + 0x28]
xorps xmm3, xmm3
add edx, eax
cmp eax, edx
jge 0x10040081
movss xmm4, dword [0x10078204]
sub edx, eax
nop word [eax + eax]
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x4d80]
imul ecx, dword [esi + eax], 0x2c
cvttss2si eax, dword [esi + eax + 4]
add ecx, dword [edi + 8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm3, xmm0
ja 0x10040061
mov eax, dword [ecx + 4]
movaps xmm2, xmm4
maxss xmm2, xmm0
test al, 0x40
je 0x10040035
xor eax, eax
jmp 0x10040040
test al, 0x80
mov eax, 0
setne al
inc eax
movss xmm1, dword [ecx + 0x14]
lea eax, [eax + eax*2]
movss xmm0, dword [esp + eax*4 + 0x68]
subss xmm1, xmm2
movss dword [ecx + 0x14], xmm2
subss xmm0, xmm1
movss dword [esp + eax*4 + 0x68], xmm0
add esi, 0xc
sub edx, 1
jne 0x10040000
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x38], xmm0
lea esi, [edi + 0x28]
xor edx, edx
movaps xmm2, xmm3
xor ecx, ecx
mov dword [esp + 0x44], edx
mov dword [edi + 0x40], edx
mov dword [esp + 0x40], ecx
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [esp + 0x24], eax
cmp ecx, 2
jne 0x100400c2
movss xmm1, dword [esi + 8]
movaps xmm0, xmm3
subss xmm1, dword [esi]
subss xmm1, dword [esp + eax + 0x68]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
mov esi, dword [esp + eax + 0x64]
xor ecx, ecx
test esi, esi
jle 0x1004011c
lea eax, [esi - 1]
imul edx, edx, 0x2c
mov dword [esp + 0x30], eax
mov eax, dword [edi + 8]
movss dword [eax + edx + 0x10], xmm2
mov dword [eax + edx + 0x20], 0xffffffff
cmp ecx, dword [esp + 0x30]
jge 0x100400ff
mov edi, dword [esp + 0x50]
movss xmm0, dword [edi + 0x38fc]
mov edi, dword [esp + 0x20]
jmp 0x10040102
movaps xmm0, xmm3
addss xmm0, dword [eax + edx + 0x14]
inc ecx
add edx, 0x2c
addss xmm2, xmm0
cmp ecx, esi
jl 0x100400d6
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
movss xmm1, dword [esp + eax + 0x6c]
add edx, esi
mov ecx, dword [esp + 0x40]
addss xmm2, xmm1
movaps xmm0, xmm1
mov dword [esp + 0x44], edx
addss xmm0, dword [esp + eax + 0x68]
inc ecx
lea esi, [edi + 0x28]
mov dword [esp + 0x40], ecx
maxss xmm0, xmm3
addss xmm0, dword [edi + 0x40]
movss dword [edi + 0x40], xmm0
cmp ecx, 3
jl 0x10040096
push 0
lea ecx, [edi + 0x8c]
call fcn.100314b0
cmp byte [esp + 0x34], 0
jne 0x10040175
mov dword [edi + 0x14], 0
jmp 0x1004017c
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x10040194
xor eax, eax
cmp dword [edi + 0x18], eax
jne 0x10040194
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x10040194
mov edx, dword [edx]
mov eax, edx
mov dword [edi + 0x14], edx
jmp 0x10040198
mov edx, dword [esp + 0x48]
mov dword [edi + 0x1c], eax
mov byte [edi + 0x70], 0
test edx, edx
je 0x100403bc
mov ecx, dword [edi]
xor eax, eax
test ecx, ecx
jle 0x100401c2
mov esi, dword [edi + 8]
cmp dword [esi], edx
je 0x100402b6
inc eax
add esi, 0x2c
cmp eax, ecx
jl 0x100401b2
movss xmm6, dword [esp + 0x68]
movss xmm7, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
movss xmm5, dword [edi + 0x28]
movss xmm0, dword [edi + 0x30]
movss xmm2, dword [edi + 0x40]
subss xmm0, xmm5
movss xmm3, dword [edi + 0x48]
movaps xmm1, xmm2
movss xmm4, dword [edi + 0x4c]
subss xmm1, xmm0
minss xmm3, xmm1
xorps xmm1, xmm1
maxss xmm3, xmm1
movss dword [edi + 0x48], xmm3
movss xmm0, dword [edi + 0x30]
subss xmm0, xmm5
subss xmm2, xmm0
minss xmm4, xmm2
maxss xmm4, xmm1
ucomiss xmm3, xmm4
movss dword [edi + 0x4c], xmm4
lahf
test ah, 0x44
jnp 0x1004051a
movss xmm0, dword [esi + 0x3cfc]
mulss xmm0, dword [0x1007a924]
mov eax, dword [edi + 0x24]
movss xmm2, dword [edi + 0x54]
inc eax
maxss xmm2, xmm0
movaps xmm0, xmm4
subss xmm0, xmm3
andps xmm0, xmmword [0x10078220]
divss xmm0, dword [0x1007a650]
maxss xmm2, xmm0
movss dword [edi + 0x54], xmm2
cmp eax, dword [esi + 0x3f10]
jl 0x10040510
movss xmm1, dword [esi + 0x3cfc]
mulss xmm1, dword [0x1007a6b0]
movss xmm0, dword [edi + 0x50]
comiss xmm0, xmm1
ja 0x10040510
comiss xmm4, xmm3
mulss xmm2, dword [esi + 0x18]
jbe 0x100404fc
addss xmm3, xmm2
minss xmm3, xmm4
movss dword [edi + 0x48], xmm3
jmp 0x10040521
test byte [esi + 4], 0xc0
movss xmm6, dword [esp + 0x68]
movss xmm7, dword [esp + 0x80]
jne 0x100401d1
mov ecx, dword [0x10083558]
mov eax, 0x2e8ba2e9
movss xmm3, dword [edi + 0x30]
xorps xmm4, xmm4
subss xmm3, dword [edi + 0x28]
movss xmm5, dword [ecx + 0x3cfc]
mov ecx, esi
sub ecx, dword [edi + 8]
imul ecx
subss xmm3, xmm6
mov eax, dword [esp + 0x64]
sar edx, 3
subss xmm3, xmm7
mov ecx, edx
dec eax
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x20], ecx
subss xmm3, dword [esp + 0x3c]
cmp ecx, eax
jle 0x10040327
movaps xmm0, xmm5
xorps xmm0, xmmword [0x10078bf0]
jmp 0x1004032a
xorps xmm0, xmm0
movss xmm1, dword [esi + 0x10]
mov ecx, dword [edi]
subss xmm1, xmm6
mov eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x7c]
inc eax
movaps xmm2, xmm1
addss xmm2, xmm0
cmp eax, ecx
jl 0x10040351
movss xmm5, dword [0x10078204]
addss xmm1, dword [esi + 0x14]
mov dword [edi + 0x50], 0
addss xmm1, xmm5
movss xmm5, dword [edi + 0x4c]
comiss xmm5, xmm2
ja 0x100403a0
movaps xmm0, xmm1
subss xmm0, xmm2
comiss xmm0, xmm3
jae 0x100403a0
subss xmm1, xmm3
comiss xmm1, xmm5
jbe 0x100401d1
subss xmm2, xmm3
movss dword [edi + 0x4c], xmm1
subss xmm2, dword [edi + 0x48]
maxss xmm2, xmm4
movss dword [edi + 0x50], xmm2
jmp 0x100401d1
movss xmm0, dword [edi + 0x48]
subss xmm0, xmm1
movss dword [edi + 0x4c], xmm2
maxss xmm0, xmm4
movss dword [edi + 0x50], xmm0
jmp 0x100401d1
test byte [edi + 0xc], 0x80
je 0x100404e4
push 1
lea eax, [edi + 0x30]
push eax
lea eax, [edi + 0x28]
push eax
call fcn.100221e0
mov esi, dword [esp + 0x5c]
add esp, 0xc
test al, al
je 0x100404d0
push 0
push dword [esi + 0x3f94]
call fcn.10022420
add esp, 8
test al, al
je 0x100404d0
mov cl, byte [esi + 0x2b0d]
test cl, cl
je 0x10040410
movss xmm0, dword [esi + 0xcc]
jmp 0x10040418
movss xmm0, dword [esi + 0xd0]
push dword [edi + 0x10]
xor eax, eax
movss dword [esp + 0x50], xmm0
test cl, cl
setne al
add eax, 0x294
push eax
mov dword [esp + 0x28], eax
call fcn.1002d3c0
add esp, 8
test al, al
je 0x100404ab
movss xmm1, dword [esp + 0x4c]
xorps xmm4, xmm4
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x100404ab
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
movss xmm2, dword [edi + 0x4c]
mov dword [edi + 0x50], 0
subss xmm0, dword [esp + 0x68]
subss xmm0, dword [esp + 0x80]
subss xmm0, dword [esp + 0x3c]
mulss xmm0, xmm1
movss xmm1, dword [edi + 0x30]
subss xmm1, dword [edi + 0x28]
divss xmm0, dword [0x10078ba0]
subss xmm2, xmm0
movss xmm0, dword [edi + 0x40]
subss xmm0, xmm1
minss xmm2, xmm0
maxss xmm2, xmm4
movss dword [edi + 0x4c], xmm2
push 0
push dword [edi + 0x10]
push dword [esp + 0x28]
call fcn.1002c500
movss xmm7, dword [esp + 0x8c]
add esp, 0xc
movss xmm6, dword [esp + 0x68]
jmp 0x100401d5
movss xmm6, dword [esp + 0x68]
movss xmm7, dword [esp + 0x80]
jmp 0x100401d5
mov esi, dword [esp + 0x50]
movss xmm7, dword [esp + 0x80]
movss xmm6, dword [esp + 0x68]
jmp 0x100401d5
comiss xmm3, xmm4
jbe 0x10040513
subss xmm3, xmm2
maxss xmm3, xmm4
movss dword [edi + 0x48], xmm3
jmp 0x10040521
movaps xmm3, xmm4
movss dword [edi + 0x48], xmm3
jmp 0x10040521
mov dword [edi + 0x54], 0
movss xmm0, dword [edi + 0x30]
addss xmm6, xmm5
mov eax, dword [edi + 0x28]
subss xmm0, xmm7
mov ecx, dword [edi + 0x2c]
push ecx
addss xmm6, dword [esp + 0x3c]
subss xmm0, dword [esp + 0x40]
movss dword [edi + 0x58], xmm6
movss dword [edi + 0x5c], xmm0
mov esi, dword [esi + 0x3f94]
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1c]
mov dword [esi + 0xfc], ecx
movss xmm0, dword [edi + 0x40]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0x80]
movss dword [esp], xmm0
push eax
call fcn.100229e0
movss xmm1, dword [edi + 0x44]
add esp, 8
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [esi + 0x118]
mov ecx, dword [esp + 0x88]
pop edi
maxss xmm0, xmm1
movss dword [esi + 0x118], xmm0
pop esi
xor ecx, esp
call fcn.10056f1d
add esp, 0x84
ret