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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push esi
push edi
sub esp, 8
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x4c], esi
mov edi, dword [eax + 0x68]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], edi
movsd xmm0, qword [edi + 0x70]
addsd xmm0, qword [0x511ee0]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x40], eax
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
call fcn.0043ca10
fstp qword [esp + 0x10]
cvttsd2si edi, qword [esp + 0x10]
lea eax, [edi + 3]
push dword [esi + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x40], eax
call fcn.004ff840
mov ecx, dword [esp + 0x54]
mov esi, eax
mov eax, dword [esp + 0x5c]
add esp, 0xc
shl esi, 3
lea edx, [ecx + 0x68]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], edx
lea edx, [ecx + 0x64]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x60]
test eax, eax
je 0x41a0b5
mov eax, dword [ecx + 0x68]
imul eax, edx
mov edx, dword [ecx + 0x64]
imul edx, dword [ecx + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x41a0cd
lea eax, [ecx + 0x64]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], eax
lea edx, [ecx + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
movd xmm0, dword [eax + 0xd2c]
mov edx, dword [ecx + 0x1c]
cvtdq2pd xmm0, xmm0
mov ecx, dword [eax + edx*4]
sar ecx, 1
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
mulsd xmm0, qword [eax + 0xd30]
cmp dword [ecx + 0x50], 0
cvttsd2si eax, xmm0
mov dword [esp + 0x30], eax
jne 0x41a125
cmp dword [ecx + 0x78], 0
je 0x41a116
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x50]
pop edi
mov dword [ecx + 0x78], eax
xor eax, eax
pop esi
add esp, 0x44
ret
mov eax, dword [ecx + 0x5c]
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x78], edx
test eax, eax
jle 0x41a2d9
cmp dword [edx + 0x1c], 0
je 0x41a14c
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
imul edx, eax
mov dword [esp + 0x2c], edx
jmp 0x41a152
mov edx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
movsd xmm0, qword [0x511ef0]
divsd xmm0, qword [eax + 0xd38]
mov eax, dword [ecx + 0x54]
sub eax, edx
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
movsd qword [esp + 8], xmm0
cmp dword [esp + 0x20], eax
jle 0x41a1ca
test edi, edi
jle 0x41a20d
nop dword [eax]
cmp esi, edx
jle 0x41a20d
mov eax, dword [ecx + 0x54]
sub eax, edx
add eax, esi
cmp eax, dword [esp + 0x30]
jle 0x41a20d
mov eax, dword [esp + 0x34]
dec edi
sub eax, 4
mov dword [esp + 0x34], eax
push dword [eax]
call fcn.004ff840
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x30]
add esp, 4
shl esi, 3
test edi, edi
jg 0x41a190
jmp 0x41a20d
jge 0x41a20d
lea eax, [edi + 1]
cmp eax, 0xf
jge 0x41a20d
cmp esi, edx
jge 0x41a20d
mov eax, dword [ecx + 0x54]
sub eax, edx
add eax, esi
cmp eax, dword [esp + 0x30]
jge 0x41a20d
mov eax, dword [esp + 0x34]
inc edi
add eax, 4
mov dword [esp + 0x34], eax
push dword [eax]
call fcn.004ff840
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x30]
add esp, 4
shl esi, 3
cmp edi, 0xe
jl 0x41a1d4
movsd xmm0, qword [esp + 8]
sub esp, 8
xorps xmm0, xmmword [0x511f00]
mov esi, dword [esp + 0x20]
movsd qword [esp + 0x24], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
mov edi, dword [esp + 0x50]
subsd xmm0, qword [edi + 0x70]
addsd xmm0, qword [0x511ee0]
movsd qword [esp + 0x1c], xmm0
fld qword [esp + 0x1c]
fstp qword [esp]
call fcn.0043ca10
xorps xmm3, xmm3
mov eax, dword [esp + 0x18]
cvtsi2sd xmm3, esi
fstp qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x1c]
xorps xmm2, xmm2
divsd xmm0, xmm3
cvtsi2sd xmm2, dword [eax + 8]
movsd xmm1, qword [esp + 0x24]
mulsd xmm0, xmm2
maxsd xmm1, xmm0
movsd xmm0, qword [esp + 0x10]
minsd xmm0, xmm1
divsd xmm0, xmm2
mulsd xmm0, xmm3
addsd xmm0, qword [edi + 0x70]
movsd qword [edi + 0x70], xmm0
addsd xmm0, qword [0x511ee0]
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
call fcn.0043ca10
mov eax, dword [esp + 0x4c]
fstp qword [esp + 0x10]
cvttsd2si edi, qword [esp + 0x10]
push dword [eax + edi*4 + 0xc]
call fcn.004ff840
mov ecx, dword [esp + 0x54]
mov esi, eax
add esp, 0xc
shl esi, 3
cmp dword [ecx + 0x60], 0
jle 0x41a32f
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0x41a32f
mov eax, dword [ecx + 0x58]
sub eax, edx
add eax, esi
jns 0x41a32f
mov eax, dword [esp + 0x44]
lea eax, [eax + edi*4]
add eax, 0xc
nop word [eax + eax]
inc edi
add eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0xf
jge 0x41a32f
push dword [eax]
call fcn.004ff840
mov ecx, dword [esp + 0x4c]
mov esi, eax
shl esi, 3
add esp, 4
mov eax, dword [ecx + 0x58]
sub eax, dword [esp + 0x3c]
add eax, esi
mov eax, dword [esp + 0x10]
js 0x41a300
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
cmp dword [eax], 0
jle 0x41a39d
cmp esi, edx
jle 0x41a39d
mov eax, dword [ecx + 0x58]
mov ecx, dword [esp + 0x38]
sub eax, edx
add eax, esi
cmp eax, dword [ecx + 0xd2c]
mov ecx, dword [esp + 0x48]
jle 0x41a39d
mov eax, dword [esp + 0x44]
lea eax, [eax + edi*4]
add eax, 0xc
sub eax, 4
sub edi, 1
mov dword [esp + 0x10], eax
js 0x41a39d
push dword [eax]
call fcn.004ff840
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x3c]
add esp, 4
shl esi, 3
mov eax, esi
sub eax, dword [esp + 0x40]
add eax, dword [ecx + 0x58]
cmp eax, dword [edx + 0xd2c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
jg 0x41a361
test edi, edi
jns 0x41a3fc
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
mov eax, dword [eax + 0xd2c]
sub eax, dword [ecx + 0x58]
add eax, edx
mov dword [ecx + 0x7c], 0
push dword [edi + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], eax
call fcn.004ff840
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jle 0x41a462
lea eax, [ecx*8]
push eax
push dword [edi + 0xc]
call fcn.004ffc20
push dword [edi + 0xc]
call fcn.004ff840
add esp, 0xc
jmp 0x41a45d
mov eax, dword [esp + 0x3c]
sub eax, dword [ecx + 0x58]
add eax, 7
cdq
and edx, 7
lea esi, [edx + eax]
mov eax, 0xe
sar esi, 3
cmp edi, 0xf
cmovge edi, eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x7c], edi
push dword [eax + edi*4 + 0xc]
call fcn.004ff840
sub esi, eax
add esp, 4
test esi, esi
jle 0x41a44d
mov eax, dword [esp + 0x44]
dec esi
push 8
push 0
push dword [eax + edi*4 + 0xc]
call fcn.004ffa80
add esp, 0xc
test esi, esi
jg 0x41a434
mov eax, dword [esp + 0x44]
push dword [eax + edi*4 + 0xc]
call fcn.004ff840
add esp, 4
mov esi, eax
shl esi, 3
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x60], 0
jg 0x41a475
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jle 0x41a4d4
mov edx, dword [esp + 0x40]
test edx, edx
jle 0x41a48a
cmp esi, edx
jle 0x41a48a
mov eax, esi
sub eax, edx
add dword [edi + 0x58], eax
jmp 0x41a4d4
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x41a4a1
cmp esi, eax
jge 0x41a4a1
mov eax, esi
sub eax, dword [esp + 0x3c]
add dword [edi + 0x58], eax
jmp 0x41a4d4
mov ecx, dword [esp + 0x30]
cmp dword [edi + 0x58], ecx
jle 0x41a4be
test edx, edx
jle 0x41a4d1
mov eax, dword [edi + 0x58]
sub eax, edx
add eax, esi
mov dword [edi + 0x58], eax
cmp eax, ecx
jge 0x41a4d4
jmp 0x41a4d1
test eax, eax
jle 0x41a4d1
mov edx, dword [edi + 0x58]
sub edx, eax
lea eax, [edx + esi]
mov dword [edi + 0x58], eax
cmp eax, ecx
jle 0x41a4d4
mov dword [edi + 0x58], ecx
mov ecx, dword [edi + 0x5c]
test ecx, ecx
jle 0x41a502
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x1c], 0
je 0x41a4fb
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
imul eax, ecx
sub esi, eax
add dword [edi + 0x54], esi
xor eax, eax
pop edi
pop esi
add esp, 0x44
ret
mov eax, ecx
sub esi, eax
add dword [edi + 0x54], esi
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret