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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x64]
push edi
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
push dword [edx + 0x34]
mov dword [esp + 0x50], edx
lea eax, [ebx + eax*4]
mov dword [esp + 0x4c], eax
call fcn.00490720
mov edi, dword [esi + 8]
add esp, 4
mov eax, dword [esi + 0xc]
mov esi, 0x10000
mov ecx, dword [edx + 0x30]
shl edi, 0x10
shl eax, 0x10
add edi, 0x8000
add eax, 0x8000
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x489e12
lea edx, [esp + 0x18]
call fcn.00486fb0
test eax, eax
jne 0x489ddd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
mov eax, dword [edx + 0x30]
mov dword [esp + 0x38], edi
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x34], eax
jmp 0x489e26
mov dword [esp + 0x14], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], 0
mov ecx, dword [edx + 0x70]
mov eax, dword [edx + 0x78]
sub eax, ecx
mov dword [esp + 0x18], ecx
cdq
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x74]
mov eax, dword [eax + 0x7c]
sub eax, ecx
mov dword [esp + 0xa8], ecx
cdq
mov ecx, edx
mov dword [esp + 0x44], eax
push ecx
push eax
push ecx
push eax
mov dword [esp + 0x50], ecx
call fcn.004e3eb0
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push eax
mov dword [esp + 0x68], edx
call fcn.004e3eb0
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, ecx
mov dword [esp + 0x10], ecx
adc dword [esp + 0x58], edx
mov edx, dword [esp + 0x58]
or eax, edx
je 0x48a21b
cmp dword [esp + 0x50], 0
je 0x48a0f9
xorps xmm2, xmm2
movsd qword [esp + 0x18], xmm2
cmp ebx, dword [esp + 0x48]
jae 0x48a4f7
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
nop dword [eax]
test ecx, ecx
je 0x489ed5
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0xc], ecx
test eax, eax
je 0x48a0c4
test esi, esi
je 0x489fb4
push dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push dword [esp + 0x48]
cdq
push edx
push eax
call fcn.004e3eb0
push dword [esp + 0x2c]
mov edi, eax
mov esi, edx
push dword [esp + 0x34]
mov eax, dword [esp + 0x40]
cdq
push edx
push eax
call fcn.004e3eb0
add edi, eax
mov ecx, edi
adc edx, esi
call fcn.0059f230
mov eax, dword [esp + 0x4c]
push dword [esp + 0x40]
movsd qword [esp + 0x1c], xmm0
push dword [esp + 0x48]
mov eax, dword [eax + 0x74]
cdq
push edx
push eax
call fcn.004e3eb0
push dword [esp + 0x2c]
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x50]
push dword [esp + 0x34]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
call fcn.004e3eb0
add edi, eax
mov ecx, edi
adc edx, esi
call fcn.0059f230
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x5e4ec8]
mulsd xmm0, xmm1
movsd xmm1, qword [esp + 0x18]
subsd xmm1, xmm0
movsd qword [esp + 0x18], xmm1
call fcn.0059f230
movd xmm1, esi
cvtdq2pd xmm1, xmm1
movsd xmm2, qword [esp + 0x18]
mulsd xmm0, xmm1
movsd xmm1, qword [0x5e5110]
divsd xmm1, xmm0
mulsd xmm2, xmm1
movsd qword [esp + 0x18], xmm2
movaps xmm0, xmm2
call fcn.0059f11b
cmp dword [esp + 0xa4], 0
mov esi, eax
mov edi, edx
jne 0x489ff2
cmp edi, dword [esp + 0x8c]
jl 0x489ff2
jg 0x489fde
cmp esi, dword [esp + 0x88]
jb 0x489ff2
cmp edi, dword [esp + 0x94]
jl 0x48a000
jg 0x489ff2
cmp esi, dword [esp + 0x90]
jb 0x48a000
push edi
push esi
lea ecx, [esp + 0x70]
call fcn.004907a0
add esp, 8
mov edx, edi
mov ecx, esi
call fcn.0059f230
movss xmm1, dword [esp + 0x68]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
movss xmm0, dword [esp + 0x70]
mulss xmm2, dword [0x5e4e8c]
movss xmm3, dword [0x5e4ed0]
mulss xmm0, xmm2
mulss xmm1, xmm2
addss xmm0, dword [esp + 0x74]
addss xmm1, dword [esp + 0x6c]
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
movzx ecx, al
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
mulss xmm0, xmm2
movzx eax, al
shl eax, 8
or ecx, eax
addss xmm0, dword [esp + 0x7c]
shl ecx, 8
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm2
movzx eax, al
movsd xmm2, qword [esp + 0x18]
or ecx, eax
shl ecx, 8
addss xmm0, dword [esp + 0x84]
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movzx eax, al
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [esp + 0xc]
add edi, dword [esp + 0x14]
add ebx, 4
mov eax, dword [esp + 0x64]
add esi, dword [esp + 0x50]
add dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
cmp ebx, dword [esp + 0x48]
jb 0x489ec0
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x48a21b
call fcn.0059f230
movd xmm1, esi
cvtdq2pd xmm1, xmm1
mov eax, dword [esp + 0x34]
cdq
push dword [esp + 0x40]
mulsd xmm0, xmm1
movsd xmm1, qword [0x5e5110]
push dword [esp + 0x48]
divsd xmm1, xmm0
push edx
push eax
movsd qword [esp + 0x68], xmm1
call fcn.004e3eb0
push dword [esp + 0x2c]
mov edi, eax
mov esi, edx
push dword [esp + 0x34]
mov eax, dword [esp + 0x40]
cdq
push edx
push eax
call fcn.004e3eb0
add edi, eax
mov ecx, edi
adc edx, esi
call fcn.0059f230
push dword [esp + 0x40]
mov eax, dword [esp + 0xac]
push dword [esp + 0x48]
cdq
push edx
push eax
movsd qword [esp + 0x60], xmm0
call fcn.004e3eb0
push dword [esp + 0x2c]
mov edi, eax
mov esi, edx
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cdq
push edx
push eax
call fcn.004e3eb0
add edi, eax
mov ecx, edi
adc edx, esi
call fcn.0059f230
movd xmm1, dword [esp + 0x3c]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x5e4ec8]
mulsd xmm0, xmm1
movsd xmm1, qword [esp + 0x50]
subsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x58]
movaps xmm0, xmm1
call fcn.0059f11b
push dword [esp + 0x40]
mov dword [esp + 0x54], eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
cdq
push edx
push eax
call fcn.004e3eb0
push dword [esp + 0x2c]
mov edi, eax
mov esi, edx
push dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.004e3eb0
add edi, eax
mov ecx, edi
adc edx, esi
call fcn.0059f230
movaps xmm1, xmm0
mulsd xmm1, qword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
jmp 0x48a237
xorps xmm0, xmm0
xorps xmm1, xmm1
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x50], esi
xorps xmm0, xmm0
movsd qword [esp + 0xa8], xmm1
movlpd qword [esp + 0x18], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
call fcn.0059f11b
or eax, edx
jne 0x48a38a
cmp dword [esp + 0xa4], eax
jne 0x48a295
cmp edi, dword [esp + 0x8c]
jl 0x48a295
jg 0x48a281
cmp esi, dword [esp + 0x88]
jb 0x48a295
cmp edi, dword [esp + 0x94]
jl 0x48a2a3
jg 0x48a295
cmp esi, dword [esp + 0x90]
jb 0x48a2a3
push edi
push esi
lea ecx, [esp + 0x70]
call fcn.004907a0
add esp, 8
mov edx, edi
mov ecx, esi
call fcn.0059f230
movss xmm2, dword [esp + 0x68]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
mov ecx, dword [esp + 0xc]
movss xmm0, dword [esp + 0x70]
mulss xmm3, dword [0x5e4e8c]
movss xmm1, dword [0x5e4ed0]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x74]
addss xmm2, dword [esp + 0x6c]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm2
addss xmm0, xmm1
movzx edx, al
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
mulss xmm0, xmm3
movzx eax, al
shl eax, 8
or edx, eax
addss xmm0, dword [esp + 0x7c]
shl edx, 8
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm3
movzx eax, al
or edx, eax
shl edx, 8
addss xmm0, dword [esp + 0x84]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movzx eax, al
or edx, eax
lea eax, [ecx*4]
shr eax, 2
xor ecx, ecx
cmp ebx, dword [esp + 0x48]
cmova eax, ecx
test eax, eax
je 0x48a4f7
mov ecx, eax
mov edi, ebx
mov eax, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [esp + 0x14], edx
cmp ebx, dword [esp + 0x48]
jae 0x48a4f7
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
nop dword [eax]
test ecx, ecx
je 0x48a3c5
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0xc], ecx
test eax, eax
je 0x48a4c3
add esi, dword [esp + 0x50]
adc edi, dword [esp + 0x10]
cmp dword [esp + 0xa4], 0
jne 0x48a3ff
cmp edi, dword [esp + 0x8c]
jl 0x48a3ff
jg 0x48a3eb
cmp esi, dword [esp + 0x88]
jb 0x48a3ff
cmp edi, dword [esp + 0x94]
jl 0x48a40d
jg 0x48a3ff
cmp esi, dword [esp + 0x90]
jb 0x48a40d
push edi
push esi
lea ecx, [esp + 0x70]
call fcn.004907a0
add esp, 8
mov edx, edi
mov ecx, esi
call fcn.0059f230
movss xmm1, dword [esp + 0x68]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
mov edx, dword [esp + 0x14]
movss xmm0, dword [esp + 0x70]
mulss xmm2, dword [0x5e4e8c]
movss xmm3, dword [0x5e4ed0]
mulss xmm0, xmm2
mulss xmm1, xmm2
addss xmm0, dword [esp + 0x74]
addss xmm1, dword [esp + 0x6c]
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
movzx ecx, al
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
mulss xmm0, xmm2
movzx eax, al
shl eax, 8
or ecx, eax
addss xmm0, dword [esp + 0x7c]
shl ecx, 8
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x80]
mulss xmm0, xmm2
movzx eax, al
or ecx, eax
shl ecx, 8
addss xmm0, dword [esp + 0x84]
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movzx eax, al
or ecx, eax
mov dword [ebx], ecx
inc edx
mov dword [esp + 0x14], edx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0xa8]
call fcn.0059f11b
mov ecx, dword [esp + 0xc]
add ebx, 4
mov edi, edx
mov edx, dword [esp + 0x14]
mov esi, eax
cmp ebx, dword [esp + 0x48]
jb 0x48a3b0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
inc dword [eax + 0xc]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret