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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [0x46f850]
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x199c]
mov byte [eax + 0x78], 1
mov ebx, dword [esi + 0x199c]
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebx + 0x1b8]
mov byte [ebx + 0x78], 1
mov ecx, dword [esi + 0x199c]
mov edx, dword [ecx + 0x17c]
sub edx, 1
mov dword [ecx + 0x17c], edx
jne 0x411700
movss xmm0, dword [ecx + 0x21c]
jmp 0x41170c
mov eax, dword [ecx + 0x184]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x168], xmm0
mov eax, dword [esi + 0x199c]
mov byte [eax + 0x78], 1
mov esi, dword [esi + 0x199c]
mov ecx, dword [esi + 0x270]
dec dword [ecx + 0x3c]
call fcn.0041b680
mov eax, dword [esi + 0x270]
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 [esi + 0x1c8], eax
movss dword [esi + 0x1cc], xmm0
movss dword [esi + 0x1d0], xmm1
movss dword [esi + 0x1d4], xmm2
mov ecx, dword [ebx + 0x270]
call fcn.0041baa0
movss xmm4, dword [edi + 0x20]
maxss xmm4, dword [ebx + 0xc8]
movss dword [edi + 0x20], xmm4
movss dword [ebx + 0xc8], xmm4
test byte [edi + 4], 0x10
movss dword [ebp - 0x18], xmm4
jne 0x4117ad
mov eax, dword [edi + 0x28]
mov dword [ebx + 0xdc], eax
xor al, al
test byte [edi + 4], 1
mov byte [ebp - 1], al
jne 0x411acb
cmp byte [ebx + 0x7b], al
jne 0x411acb
movss xmm3, dword [edi + 0x24]
mov esi, 1
movss dword [ebp - 0x14], xmm3
mov dword [ebp - 8], 0xffffffff
cmp dword [edi + 0x10], esi
jle 0x411acb
movss xmm5, dword [0x4426f0]
mov edx, dword [0x46f850]
mov dword [ebp - 0xc], 0x1c
nop dword [eax]
mov eax, dword [edx + 0x199c]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [eax + 0x1b8]
mov dword [ebp - 0x20], eax
test esi, esi
jns 0x41181e
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp - 0x20]
movss xmm0, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
shl ecx, 3
movss xmm1, dword [ebx + 0x18]
sub ecx, dword [ebp - 0x10]
subss xmm1, xmm0
mov ebx, dword [ebp - 0x1c]
movss dword [ebp - 0x40], xmm3
movss dword [ebp - 0x38], xmm4
mulss xmm1, dword [eax + ecx*4]
mov ecx, dword [edi]
add ecx, esi
addss xmm1, xmm0
addss xmm1, dword [ebx + 0xc]
movaps xmm2, xmm1
movss dword [ebp - 0x20], xmm1
addss xmm2, xmm5
subss xmm1, xmm5
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x44], xmm1
cmp dword [edx + 0x19bc], ecx
jne 0x41187f
mov dword [edx + 0x19c4], ecx
cmp dword [edx + 0x19c0], ecx
jne 0x41188e
mov byte [edx + 0x19cf], 1
mov eax, dword [edx + 0x199c]
add eax, 0x1c8
comiss xmm4, dword [eax + 4]
jbe 0x4118b8
movss xmm0, dword [eax + 0xc]
comiss xmm0, xmm3
jbe 0x4118b8
comiss xmm2, dword [eax]
jbe 0x4118b8
movss xmm0, dword [eax + 8]
comiss xmm0, xmm1
ja 0x4118d1
test ecx, ecx
je 0x4118c4
cmp ecx, dword [edx + 0x19bc]
je 0x4118d1
cmp byte [edx + 0x2c54], 0
je 0x4119bf
xor al, al
test byte [edi + 4], 2
mov byte [ebp - 2], al
mov byte [ebp - 3], al
jne 0x411930
push 0
lea eax, [ebp - 3]
mov edx, ecx
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x44]
call fcn.00422420
mov al, byte [ebp - 2]
add esp, 0xc
mov cl, byte [ebp - 3]
test al, al
jne 0x411904
test cl, cl
je 0x411930
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c58], 4
test cl, cl
je 0x411930
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0xc]
test byte [eax + ecx + 8], 2
mov ecx, 0x1d
mov eax, dword [ebp - 8]
cmove eax, esi
mov dword [ebp - 8], eax
jmp 0x41193a
xor ecx, ecx
test al, al
setne cl
add ecx, 0x1b
cvttss2si eax, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 4], 0x3f800000
movss xmm0, dword [ebp - 0x18]
minss xmm0, dword [ebx + 0x1d4]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x2c], xmm1
movss dword [ebp - 0x34], xmm1
movss xmm1, dword [0x442690]
addss xmm0, xmm1
maxss xmm0, dword [ebx + 0x1cc]
movss dword [ebp - 0x30], xmm0
call fcn.004031e0
mov ecx, dword [ebx + 0x270]
add esp, 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041d460
mov edx, dword [0x46f850]
movss xmm3, dword [ebp - 0x14]
movss xmm4, dword [ebp - 0x18]
movss xmm5, dword [0x4426f0]
add dword [ebp - 0xc], 0x1c
inc esi
mov eax, dword [edi + 0x10]
cmp esi, eax
jl 0x411800
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x411ac8
cmp byte [edi + 9], 0
jne 0x411a0a
inc eax
xor ebx, ebx
test eax, eax
jle 0x411a0a
xor esi, esi
nop word [eax + eax]
mov ecx, dword [edi + 0x34]
lea esi, [esi + 0x1c]
inc ebx
mov eax, dword [ecx + esi - 0x1c]
mov dword [ecx + esi - 0x18], eax
mov eax, dword [edi + 0x10]
inc eax
cmp ebx, eax
jl 0x4119f0
mov ecx, dword [ebp - 8]
mov byte [edi + 9], 1
movss xmm2, dword [edx + 0xe4]
subss xmm2, dword [edx + 0x19d8]
mov eax, dword [edx + 0x199c]
mov byte [ebp - 1], 1
addss xmm2, xmm5
subss xmm2, dword [eax + 0xc]
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x199c]
mov eax, dword [eax + 0x1b8]
mov dword [ebp - 0x24], eax
lea esi, [eax + 0xc]
lea eax, [ecx - 1]
test eax, eax
jns 0x411a55
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x24]
movss xmm4, dword [edx + 0x1578]
shl eax, 3
sub eax, dword [ebp - 0x18]
test byte [edi + 4], 4
movss xmm3, dword [ebx + 0x14]
movss xmm0, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x34]
subss xmm0, xmm3
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
movaps xmm1, xmm0
mulss xmm1, dword [ecx + eax*4]
mov ecx, dword [ebp - 8]
addss xmm1, xmm3
addss xmm1, xmm4
maxss xmm1, xmm2
je 0x411ac3
lea edx, [ecx + 1]
test edx, edx
jns 0x411aa3
mov edx, dword [esi]
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ebp - 0x24]
mulss xmm0, dword [edx + eax*4]
addss xmm0, xmm3
subss xmm0, xmm4
minss xmm0, xmm1
movaps xmm1, xmm0
call fcn.00410da0
mov al, byte [ebp - 1]
mov byte [edi + 9], al
xorps xmm1, xmm1
movss xmm0, dword [ebx + 0x1ac]
addss xmm0, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebx + 0x1b8], 0
mov dword [ebx + 0x1b4], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xc4], xmm0
pop ebx
mov esp, ebp
pop ebp
ret