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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov eax, dword [eax]
push esi
mov ebx, dword [ebx]
mov dword [esp + 0x24], eax
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
cmp ebx, 1
jb 0x4da7ee
mov ecx, dword [edi + 0x2c]
dec ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
mov byte [esp + 0x13], cl
mov dword [esp + 0x2c], ebx
cmp eax, 5
jl 0x4d9f44
movzx ebp, cl
and ebp, 4
jmp 0x4d9f46
xor ebp, ebp
xor edx, edx
movzx esi, cl
cmp eax, 5
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x60]
mov ecx, esi
setl dl
shr ecx, 2
add edx, 0xe
sar eax, 3
and ecx, edx
and eax, edx
cmp ecx, eax
jne 0x4da7ee
test ebp, ebp
mov ebp, dword [esp + 0x68]
je 0x4d9f80
test ebp, ebp
je 0x4da7ee
mov al, byte [esp + 0x13]
and al, 3
shr esi, 6
mov byte [esp + 0x13], al
cmp al, 2
jne 0x4da0a5
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x4da7ce
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
mov ebp, dword [esp + 0x18]
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
mov edi, dword [esp + 0x60]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
cmp edi, ebx
jge 0x4da083
mov ecx, dword [esp + 0x14]
sub ebx, edi
cmp dword [esp + 0x1c], 0
mov edi, eax
lea ebp, [ecx*4]
je 0x4da040
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da032
mov eax, dword [edi - 4]
mov dword [edi], eax
inc esi
add edi, ebp
sub ebx, 1
jne 0x4da010
jmp 0x4da06b
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da063
mov dword [edi], 0
inc esi
add edi, ebp
sub ebx, 1
jne 0x4da040
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add eax, ecx
add esi, ebp
mov dword [esp + 0x54], eax
sub edx, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], edx
jne 0x4d9ff0
jmp 0x4da7ce
test al, al
jne 0x4da1d4
cmp dword [esp + 0x1c], 0
jne 0x4da7ee
mov edi, dword [esp + 0x58]
xor edx, edx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], edi
cmp edi, dword [esp + 0x5c]
jge 0x4da1c4
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
imul eax, edi
add ebx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov ecx, ebx
imul eax, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
shl eax, 2
add ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
jge 0x4da19d
mov edi, ebx
mov ebx, ecx
sub edi, eax
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da174
mov ecx, dword [esp + 0x2c]
cmp ecx, 4
jb 0x4da7ee
mov eax, dword [ebp]
sub ecx, 4
mov edx, dword [esp + 0x6c]
add ebp, 4
inc edx
mov dword [ebx], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], edx
jmp 0x4da178
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x4da130
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add eax, dword [esp + 0x18]
inc edi
add ebx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ecx
cmp edi, dword [esp + 0x5c]
jl 0x4da113
mov eax, dword [esp + 0x28]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
jmp 0x4da7ce
cmp dword [esp + 0x1c], 0
je 0x4da1e6
cmp dword [edi + 0x48], 6
mov eax, 4
jl 0x4da1e9
mov eax, dword [edi + 0x48]
push esi
push eax
call fcn.004fb780
mov esi, eax
add esp, 8
cmp esi, 8
je 0x4da7ee
push esi
call fcn.004fb730
add esp, 4
mov dword [esp + 0x34], eax
cmp ebx, eax
jb 0x4da7ee
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004fc290
sub ebx, dword [esp + 0x3c]
add esp, 8
mov edx, dword [edi + 0x20]
mov dword [esp + 0x2c], ebx
fstp qword [esp + 0x40]
cmp edx, 4
jl 0x4da249
cmp dword [esp + 0x14], 1
jle 0x4da249
mov eax, dword [edi + 0xb4]
movsd xmm0, qword [eax + ebp*8]
jmp 0x4da24e
movsd xmm0, qword [edi + 0x60]
cmp byte [esp + 0x13], 3
movsd qword [esp + 0x38], xmm0
jne 0x4da398
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x4da7ce
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x64]
jne 0x4da307
cvttsd2si ebp, xmm2
cmp dword [esp + 0x60], ebx
jge 0x4da36e
sub ebx, dword [esp + 0x60]
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da2f2
mov dword [edi], ebp
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add edi, eax
sub ebx, 1
jne 0x4da2d3
jmp 0x4da362
cmp dword [esp + 0x60], ebx
jge 0x4da36e
mov eax, dword [esp + 0x14]
mov edi, ecx
sub ebx, dword [esp + 0x60]
lea ebp, [eax*4]
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da354
movd xmm1, dword [edi - 4]
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [edi], eax
movsd xmm0, qword [esp + 0x38]
inc esi
add edi, ebp
sub ebx, 1
jne 0x4da320
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add ecx, eax
add esi, dword [esp + 0x18]
sub edx, 1
movsd xmm0, qword [esp + 0x38]
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
jne 0x4da2b4
jmp 0x4da7ce
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
sub ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x30], eax
imul ebx, ecx
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], ecx
lea ecx, [edi + 0x78]
push ebx
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004ff6b0
test al, al
je 0x4da7ee
movsd xmm3, qword [edi + 0x50]
mov eax, dword [esi + 4]
addsd xmm3, xmm3
mov edi, dword [esi]
sub eax, edi
sar eax, 2
cmp eax, ebx
jne 0x4da50c
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x4da7ce
mov esi, dword [esp + 0x14]
mov eax, esi
mov edx, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul eax, edx
imul edx, ecx
mov ecx, dword [esp + 0x60]
shl eax, 2
add edx, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
imul edx, esi
add edx, ebp
mov ebp, dword [esp + 0x5c]
lea ebx, [eax + edx*4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x4da497
cmp ecx, dword [esp + 0x64]
jge 0x4da4f8
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
nop dword [eax]
mov eax, dword [edi]
movaps xmm0, xmm4
add edi, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x4da460
jmp 0x4da4e8
cmp ecx, dword [esp + 0x64]
jge 0x4da4f8
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
mov eax, dword [edi]
add edi, 4
movd xmm0, dword [ecx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x4da4a6
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
add ebx, ebp
sub eax, 1
mov dword [esp + 0x24], eax
jne 0x4da446
jmp 0x4da7ce
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x20], 2
jle 0x4da6a1
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x4da7ce
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul esi, ecx
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
add esi, ebx
mov ecx, esi
mov dword [esp + 0x68], esi
imul ecx, dword [esp + 0x14]
add ecx, ebp
mov ebp, dword [esp + 0x18]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x1c], 0
jne 0x4da5f0
cmp ebx, dword [esp + 0x64]
jge 0x4da67f
mov ebp, dword [esp + 0x30]
mov ebx, ecx
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da5db
mov eax, dword [edi]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x4da590
jmp 0x4da66b
cmp ebx, dword [esp + 0x64]
jge 0x4da67f
mov ebp, dword [esp + 0x30]
mov ebx, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da658
mov eax, dword [edi]
movd xmm0, dword [ebx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x4da600
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
add ecx, edx
add esi, ebp
mov dword [esp + 0x58], ecx
sub eax, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], eax
jne 0x4da575
jmp 0x4da7ce
mov edx, dword [esp + 0x58]
xor ebp, ebp
cmp edx, dword [esp + 0x5c]
jge 0x4da7ce
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul edi, edx
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
add ebx, edi
mov dword [esp + 0x58], edi
mov ecx, ebx
mov dword [esp + 0x24], ebx
imul ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x68]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
nop dword [eax]
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
jge 0x4da7a9
mov edi, ebx
mov ebx, ecx
sub edi, dword [esp + 0x58]
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4da780
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebp, eax
je 0x4da7ee
mov eax, dword [ecx + ebp*4]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
inc ebp
addsd xmm1, qword [eax*8 + 0x71a1f0]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x4da720
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
add edi, dword [esp + 0x18]
inc edx
add ebx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x54], ecx
cmp edx, dword [esp + 0x5c]
jl 0x4da700
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
pop ebp
pop ebx
mov dword [ecx], eax
mov al, 1
add esp, 0x38
ret 0x24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 0x24