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

Disassembly:
sub esp, 0x58
or dword [esp + 0x40], 0xffffffff
and dword [esp + 0x3c], 0
push esi
push edi
mov edi, dword [esp + 0x64]
xor esi, esi
inc esi
cmp dword [esp + 0x70], 0
mov dword [esp + 0x40], esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jle 0x1004be33
mov edx, dword [esp + 0x6c]
add edx, 0x10
mov dword [esp + 0x54], edx
movss xmm0, dword [edx - 0x10]
comiss xmm0, dword [0x100c44a8]
push ecx
jbe 0x1004ba45
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.1004bf19
jmp 0x1004ba5a
xorps xmm0, xmmword [0x100cdbc0]
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.1004bee4
mov eax, dword [esp + 0x5c]
movss xmm2, dword [0x100c44b4]
pop ecx
pop ecx
movzx ecx, byte [eax + 4]
mov dword [edi + 0x1c], ecx
movzx edx, byte [eax + 5]
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
push ecx
mov dword [edi + 0x20], edx
fstp dword [esp + 0x5c]
addsd xmm0, qword [eax*8 + 0x100cdb90]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movss dword [esp + 0x24], xmm2
addsd xmm0, qword [eax*8 + 0x100cdb90]
movss xmm2, dword [0x100c44b4]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x20], xmm2
call fcn.1004971a
fstp dword [esp + 0x3c]
push edx
call fcn.1004971a
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
xor ecx, ecx
fstp dword [esp + 0x30]
mov dword [esp + 0x50], ecx
cmp dword [edx - 4], ecx
jle 0x1004be15
imul eax, dword [esp + 0x48], 0x1c
and dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
imul eax, dword [esp + 0x44], 0x18
add eax, 0xc
add esi, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], esi
cmp dword [esi + 8], 0
je 0x1004bdae
cmp dword [esi - 8], 0
je 0x1004bdae
cmp dword [esi - 4], 0
je 0x1004bdae
mov eax, dword [edx]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [edx - 8]
test eax, eax
jne 0x1004bb4c
mov eax, dword [edx - 0xc]
add eax, ecx
jmp 0x1004bb4f
mov eax, dword [eax + ecx*4]
push eax
push dword [esp + 0x6c]
call fcn.1004b2d1
mov ecx, dword [edi + 0x14]
mov edx, eax
add dword [esi], ecx
lea eax, [esp + 0x18]
add dword [esi + 4], ecx
sub dword [esi - 8], ecx
sub dword [esi - 4], ecx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], edx
push eax
push edx
push dword [esp + 0x7c]
call fcn.1004b790
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x20]
sub esp, 0x10
and dword [esp + 0xc], 0
and dword [esp + 8], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cdb90]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x78]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cdb90]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x78]
movss dword [esp], xmm0
push dword [esp + 0x6c]
push dword [esp + 0x8c]
call fcn.1004b5bd
movd xmm0, dword [edi + 0x20]
add esp, 0x28
mov eax, dword [edi + 0x20]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
push dword [esp + 0x4c]
sub esp, 0x10
and dword [esp + 0xc], 0
and dword [esp + 8], 0
addsd xmm0, qword [eax*8 + 0x100cdb90]
mov eax, dword [edi + 0x1c]
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x6c]
movss dword [esp + 4], xmm0
movd xmm0, dword [edi + 0x1c]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100cdb90]
mov eax, dword [esi - 4]
sub eax, dword [edi + 0x20]
inc eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x6c]
movss dword [esp], xmm0
push dword [edi + 0x10]
push eax
mov eax, dword [esi - 8]
sub eax, dword [edi + 0x1c]
inc eax
push eax
mov eax, dword [esi + 4]
imul eax, dword [edi + 0x10]
add eax, dword [esi]
add eax, dword [edi + 0x24]
push eax
push dword [esp + 0x8c]
call fcn.1004b852
add esp, 0x28
cmp dword [edi + 0x1c], 1
jbe 0x1004bcbb
push dword [edi + 0x1c]
mov eax, dword [esi + 4]
push dword [edi + 0x10]
imul eax, dword [edi + 0x10]
push dword [esi - 4]
push dword [esi - 8]
add eax, dword [edi + 0x24]
add eax, dword [esi]
push eax
call fcn.10049060
add esp, 0x14
cmp dword [edi + 0x20], 1
jbe 0x1004bce2
push dword [edi + 0x20]
mov eax, dword [esi + 4]
push dword [edi + 0x10]
imul eax, dword [edi + 0x10]
push dword [esi - 4]
push dword [esi - 8]
add eax, dword [edi + 0x24]
add eax, dword [esi]
push eax
call fcn.1004ae7b
add esp, 0x14
mov ecx, dword [esp + 0x28]
mov ax, word [esi]
movd xmm0, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
mov word [ecx], ax
mov ax, word [esi + 4]
mov word [ecx + 2], ax
mov ax, word [esi - 8]
add ax, word [esi]
mulss xmm0, dword [esp + 0x58]
mov word [ecx + 4], ax
mov ax, word [esi - 4]
add ax, word [esi + 4]
movss dword [ecx + 0x10], xmm0
movd xmm0, dword [esp + 0x3c]
cvtdq2ps xmm0, xmm0
mov word [ecx + 6], ax
mov edx, dword [esp + 0x54]
mulss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0x38]
movss dword [ecx + 8], xmm0
movd xmm0, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x1c]
addss xmm0, dword [esp + 0x30]
movss dword [ecx + 0xc], xmm0
mov eax, dword [esi - 8]
add eax, dword [esp + 0x3c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0x38]
movss dword [ecx + 0x14], xmm0
mov eax, dword [esi - 4]
add eax, dword [esp + 0x34]
cmp dword [esp + 0x4c], 0
movd xmm0, eax
mov eax, dword [esp + 0x5c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x1c]
addss xmm0, dword [esp + 0x30]
movss dword [ecx + 0x18], xmm0
mov ecx, dword [esp + 0x50]
jne 0x1004bdf5
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
jmp 0x1004bdea
cmp dword [edi + 0x18], 0
jne 0x1004bdf0
cmp dword [esi + 8], 0
je 0x1004bdf0
cmp dword [esi - 8], 0
jne 0x1004bdf0
cmp dword [esi - 4], 0
jne 0x1004bdf0
cmp dword [esp + 0x48], 0
jl 0x1004bdf0
mov esi, dword [esp + 0x2c]
add esi, dword [edx]
mov edi, dword [esp + 0x5c]
add edi, dword [edx]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
jmp 0x1004bdf5
and dword [esp + 0x40], 0
inc dword [esp + 0x44]
add esi, 0x18
inc ecx
mov dword [esp + 0x4c], esi
add eax, 0x1c
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], eax
cmp ecx, dword [edx - 4]
jl 0x1004bb16
add edx, 0x18
sub dword [esp + 0x70], 1
mov dword [esp + 0x54], edx
jne 0x1004ba26
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov eax, esi
mov dword [edi + 0x20], ecx
pop edi
pop esi
add esp, 0x58
ret