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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100be9bc]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1efc]
mov dword [esp + 0x18], eax
cmp byte [esi + 0x214], 0
jne 0x1004f18b
mov ecx, esi
call fcn.1004e080
cmp byte [esi + 0x215], 0
mov edx, dword [esi + 4]
mov edi, dword [esi + 0x1b4]
mov ebx, dword [esi + 0x1b0]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
je 0x1004f1ba
mov ecx, esi
call fcn.1004fa00
mov edx, dword [esp + 0x10]
test dl, 0x20
je 0x1004f1f6
mov cl, byte [esi + 0x200]
cmp cl, 0xff
je 0x1004f1f6
mov eax, dword [0x100be9bc]
cmp dword [eax + 0x1a90], 0
jne 0x1004f1f6
cmp dword [eax + 0x1a94], 0
jne 0x1004f1f6
cmp byte [eax + 0x3e3], 0
je 0x1004f1f6
movsx ecx, cl
call fcn.100516b0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0x188]
mov dword [edi + 0xfc], eax
mov dword [edi + 0x100], ecx
mov eax, dword [esi + 0x18c]
mov ecx, dword [esi + 0x190]
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
mov eax, dword [esi + 0x194]
mov ecx, dword [esi + 0x198]
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe8], ecx
movss xmm1, dword [esi + 0x68]
movss dword [esp + 0x1c], xmm1
cmp edi, ebx
je 0x1004f257
movss dword [edi + 0xe8], xmm1
jmp 0x1004f27b
test edx, 0x20000
jne 0x1004f27b
movss xmm0, dword [esi + 0xe0]
maxss xmm0, xmm1
movss dword [esi + 0xf0], xmm0
movss dword [esi + 0xe0], xmm0
movss xmm1, dword [esi + 0xe0]
movss xmm0, dword [esi + 0x100]
mov eax, dword [esi + 4]
maxss xmm0, xmm1
movss xmm2, dword [0x1009a1b4]
movss dword [esi + 0x100], xmm0
subss xmm1, dword [esi + 0xd8]
movss dword [esi + 0xb4], xmm1
test eax, 0x1000000
je 0x1004f31b
test eax, 0x400
jne 0x1004f2c3
xorps xmm2, xmm2
mov ebx, dword [esi + 0x1b4]
mov al, byte [esi + 0x20a]
movss xmm1, dword [ebx + 0xe4]
cmp al, 0xff
je 0x1004f302
movsx eax, al
imul ecx, eax, 0x68
mov eax, dword [esi + 0xc]
movss xmm0, dword [ecx + eax + 0x38]
addss xmm0, dword [esi + 0xa4]
addss xmm0, dword [esi + 0xa0]
subss xmm0, xmm2
maxss xmm1, xmm0
cmp byte [esi + 0x203], 0xff
je 0x1004f313
maxss xmm1, dword [esi + 0xcc]
movss dword [ebx + 0xe4], xmm1
test edx, 0x100000
jne 0x1004f357
mov ecx, dword [edi + 0x288]
mov edx, dword [ecx + 0x3c]
sub edx, 1
mov dword [ecx + 0x3c], edx
jne 0x1004f33c
mov eax, dword [ecx + 0x2c]
add eax, 0x18
jmp 0x1004f347
mov eax, dword [ecx + 0x44]
shl edx, 4
add eax, 0xfffffff0
add eax, edx
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x60], xmm0
call fcn.100440f0
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x288]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edi + 0x234], eax
movss dword [edi + 0x238], xmm0
movss dword [edi + 0x23c], xmm1
movss dword [edi + 0x240], xmm2
test edx, 0x780
je 0x1004f3a8
mov ecx, esi
call fcn.10050d90
push 0
push dword [edi + 0x288]
lea ecx, [esi + 0x1c4]
call fcn.10046cd0
test dword [esi + 4], 0x100000
jne 0x1004f3cb
mov ecx, esi
call fcn.10050620
push dword [edi + 0x288]
lea ecx, [esi + 0x1c4]
call fcn.10046890
movsx ecx, byte [esi + 0x1fd]
xor ebx, ebx
movss xmm1, dword [esi + 0xb0]
addss xmm1, dword [esi + 0xac]
movss xmm2, dword [esi + 0xa0]
lea eax, [ecx - 1]
movss xmm3, dword [esi + 0xa4]
addss xmm2, xmm2
movd xmm0, eax
addss xmm3, xmm3
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm2
mulss xmm3, xmm0
addss xmm1, xmm3
movss dword [esi + 0xc4], xmm1
cmp dword [esi + 0x54], ebx
jle 0x1004f4fd
xor edi, edi
xorps xmm3, xmm3
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esi + 0x30]
and ecx, dword [esi + 0x34]
or edx, ecx
je 0x1004f4ec
mov ecx, dword [esi + 0xc]
add ecx, edi
mov edx, dword [ecx]
mov eax, edx
and al, 0x18
cmp al, 8
jne 0x1004f48f
movss xmm0, dword [ecx + 0x10]
addss xmm0, dword [esi + 0xc4]
movss dword [esi + 0xc4], xmm0
jmp 0x1004f4ec
movss xmm1, dword [ecx + 0x40]
movss xmm2, dword [ecx + 0x34]
maxss xmm1, dword [ecx + 0x44]
subss xmm1, xmm2
test edx, 0x800
jne 0x1004f4b7
movss xmm0, dword [ecx + 0x4c]
subss xmm0, xmm2
maxss xmm1, xmm0
test dl, 8
je 0x1004f4d4
movss xmm0, dword [ecx + 0x1c]
comiss xmm0, xmm3
jbe 0x1004f4d4
test byte [esi + 4], 1
je 0x1004f4d1
test dl, 0x10
je 0x1004f4d4
movaps xmm1, xmm0
maxss xmm1, dword [esi + 0x9c]
addss xmm1, dword [esi + 0xc4]
movss dword [esi + 0xc4], xmm1
inc ebx
add edi, 0x68
cmp ebx, dword [esi + 0x54]
jl 0x1004f444
mov edi, dword [esp + 0x14]
test dword [esi + 4], 0x1000000
mov edx, dword [esp + 0xc]
jne 0x1004f51a
cmp edi, edx
je 0x1004f51a
mov dword [edi + 0x58], 0
jmp 0x1004f5b9
mov cl, byte [esi + 0x204]
cmp cl, 0xff
je 0x1004f5b9
cmp byte [esi + 0x203], 0xff
jne 0x1004f5b9
cmp byte [edi + 0x88], 0
je 0x1004f5b9
mov ax, word [esi + 0x62]
cmp ax, word [esi + 0x60]
jne 0x1004f5b9
movss xmm2, dword [esi + 0xa4]
movss xmm0, dword [esi + 0x104]
addss xmm2, xmm2
movsx eax, cl
imul ecx, eax, 0x68
mov eax, dword [esi + 0xc]
addss xmm2, dword [esi + 0x9c]
movss xmm1, dword [ecx + eax + 0xc]
comiss xmm0, xmm1
jbe 0x1004f584
subss xmm1, dword [edi + 0xc]
subss xmm1, xmm2
jmp 0x1004f596
comiss xmm1, dword [esi + 0x10c]
jbe 0x1004f5b9
subss xmm1, dword [edi + 0xc]
addss xmm1, xmm2
addss xmm1, dword [edi + 0x58]
mov dword [edi + 0x78], 0
mov dword [edi + 0x70], 0x3f800000
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x68], xmm0
mov cl, byte [esi + 0x203]
cmp cl, 0xff
je 0x1004f624
mov ax, word [esi + 0x60]
cmp ax, word [esi + 0x62]
jne 0x1004f624
mov eax, dword [esp + 0x18]
movss xmm1, dword [esi + 0xa4]
addss xmm1, xmm1
movss xmm0, dword [eax + 0xe4]
subss xmm0, dword [eax + 0x1ac8]
movsx eax, cl
imul ecx, eax, 0x68
mov eax, dword [esi + 0xc]
addss xmm0, dword [0x1009a248]
subss xmm0, dword [ecx + eax + 8]
subss xmm0, dword [esi + 0xac]
subss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xc8], xmm0
mov eax, dword [0x100be9bc]
lea ebx, [esi + 0xd4]
mov eax, dword [eax + 0x1a6c]
dec dword [eax + 0xc0]
movss xmm0, dword [edx + 0xe4]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edx + 0xe8]
movss dword [esp + 0x14], xmm0
movups xmm0, xmmword [esi + 0x154]
movups xmmword [edi + 0x214], xmm0
movups xmm0, xmmword [esi + 0x164]
movups xmmword [edi + 0x224], xmm0
mov al, byte [esi + 0x222]
mov byte [edi + 0x8f], al
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [edx + 0xcc], eax
mov dword [edx + 0xd0], ecx
mov eax, dword [esi + 0x1a8]
mov dword [edx + 0x1b4], eax
mov eax, dword [esi + 0x1ac]
mov dword [edx + 0x1bc], eax
mov eax, dword [esi + 0x1a4]
mov dword [edx + 0x110], eax
cmp edi, edx
je 0x1004f6bf
call fcn.100304a0
jmp 0x1004f6fd
movss xmm0, dword [ebx + 8]
lea ecx, [esp + 0x20]
subss xmm0, dword [ebx]
movss xmm1, dword [0x1009a38c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [ebx + 0xc]
subss xmm0, dword [ebx + 4]
movss dword [esp + 0x24], xmm0
call fcn.10035510
push 0
xor edx, edx
mov ecx, ebx
call fcn.10035640
add esp, 4
mov eax, dword [esi + 4]
xorps xmm3, xmm3
test eax, 0x10000
je 0x1004f722
movss xmm0, dword [esi + 0xc4]
addss xmm0, dword [ebx]
movss xmm2, dword [esp + 0x10]
maxss xmm2, xmm0
jmp 0x1004f7a1
movss xmm2, dword [esi + 0x19c]
comiss xmm3, xmm2
jb 0x1004f793
test eax, 0x1000000
je 0x1004f740
movss xmm0, dword [edi + 0x80]
jmp 0x1004f743
xorps xmm0, xmm0
movss xmm1, dword [esi + 0xc4]
addss xmm1, dword [ebx]
mov eax, dword [esp + 0xc]
addss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
subss xmm1, xmm2
movss xmm2, dword [esp + 0x10]
maxss xmm0, xmm1
movss dword [eax + 0xec], xmm0
movss xmm0, dword [esi + 0xc4]
addss xmm0, dword [ebx]
movss xmm1, dword [esi + 0xdc]
minss xmm1, xmm0
maxss xmm2, xmm1
jmp 0x1004f7a1
movss xmm2, dword [esp + 0x10]
maxss xmm2, dword [esi + 0xdc]
mov ebx, dword [esp + 0xc]
movss dword [ebx + 0xe4], xmm2
movss xmm0, dword [esi + 0x1a0]
comiss xmm3, xmm0
jb 0x1004f803
test dword [esi + 4], 0x2000000
je 0x1004f7cb
movss xmm3, dword [edi + 0x84]
addss xmm3, dword [esp + 0x1c]
movss xmm1, dword [esp + 0x14]
subss xmm3, xmm0
movss xmm0, dword [ebx + 0xf0]
maxss xmm0, xmm3
movss dword [ebx + 0xf0], xmm0
movss xmm0, dword [esi + 0xe0]
minss xmm0, dword [esp + 0x1c]
maxss xmm1, xmm0
jmp 0x1004f811
movss xmm1, dword [esp + 0x14]
maxss xmm1, dword [esi + 0xe0]
movss dword [ebx + 0xe8], xmm1
cmp byte [esi + 0x21b], 0
je 0x1004f829
mov ecx, esi
call fcn.10051b50
mov edx, dword [esp + 0x18]
mov byte [esi + 0x216], 0
mov ecx, dword [edx + 0x1f1c]
sub ecx, 1
mov dword [edx + 0x1f1c], ecx
je 0x1004f885
mov eax, dword [edx + 0x1f24]
imul ecx, dword [eax + ecx*8 - 4], 0x228
add ecx, dword [edx + 0x1f08]
mov dword [edx + 0x1efc], ecx
je 0x1004f88f
sub ecx, dword [edx + 0x1f08]
mov eax, 0x76b981db
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x19c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edx + 0x1efc], 0
pop edi
pop esi
mov dword [ebx + 0x19c], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret