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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x4d91a8
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x4d91a8
mov edx, dword [ebp + 0x18]
test edx, edx
jle 0x4d91a8
mov eax, dword [ebp + 0x1c]
xorps xmm1, xmm1
comisd xmm1, xmmword [eax]
ja 0x4d91a8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, edi
imul eax, ebx
sar ecx, 2
imul eax, edx
cmp ecx, eax
jne 0x4d919c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, ebx
imul eax, edx
cmp ecx, eax
jne 0x4d919c
push 0x75acb4
mov ecx, 0x75ace4
call fcn.004e2170
test al, al
je 0x4d8ac7
push 0x75aca8
mov ecx, 0x75ace4
call fcn.004e2170
test al, al
jne 0x4d919c
mov eax, dword [ebp + 0x28]
mov ecx, 0x75ace4
push 0x75aca8
mov byte [esp + 0x30], 0
mov byte [eax], 0
mov eax, dword [ebp + 0x2c]
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
mov byte [eax], 0
call fcn.004e2150
movsd xmm5, qword [0x6be2d0]
xor ah, ah
mov edx, 1
mov byte [esp + 0x1a], ah
mov dword [esp + 0x1c], edx
movsd qword [esp + 0x60], xmm5
cmp byte [ebp + 0x20], ah
je 0x4d8b40
mov ecx, dword [ebp + 0x24]
test al, al
je 0x4d8b3a
movsd xmm1, qword [ecx]
movsd xmm0, qword [0x6be2c0]
comisd xmm0, xmm1
ja 0x4d91a8
comisd xmm1, xmmword [0x6be280]
ja 0x4d91a8
movsd xmm0, qword [ecx]
jmp 0x4d8b51
test al, al
je 0x4d8b4e
movsd xmm0, qword [0x6be2c0]
jmp 0x4d8b51
movaps xmm0, xmm5
movsd xmm4, qword [0x6be290]
movsd qword [esp + 0x58], xmm4
cvttsd2si ecx, xmm0
mov dword [esp + 0x20], ecx
test al, al
je 0x4d8b7d
movsd xmm6, qword [0x6be2a8]
movsd xmm7, qword [0x6be258]
jmp 0x4d8b93
movsd xmm6, qword [0x6be2b8]
movsd xmm7, qword [0x6be278]
movsd qword [esp + 0x60], xmm5
mov ebx, edi
movsd qword [esp + 0x68], xmm7
imul ebx, dword [ebp + 0x14]
xor eax, eax
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
movsd qword [esp + 0x70], xmm6
mov dword [esp + 0x3c], eax
shl ebx, 2
mov dword [esp + 0x54], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x50], ebx
jmp 0x4d8bdc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov ebx, dword [ebp + 8]
movsd xmm2, qword [0x6be228]
mov ebx, dword [ebx]
add ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], eax
jmp 0x4d8c04
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp byte [esi + eax], 0
je 0x4d8e21
inc dword [esp + 0x24]
xor esi, esi
cmp edi, 1
jle 0x4d8d25
mov dword [esp + 0x40], edi
jmp 0x4d8c36
movsd xmm4, qword [esp + 0x58]
mov edi, dword [ebx]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
ucomisd xmm1, xmm1
setp al
cmp al, 1
jne 0x4d8c5a
inc esi
mov byte [esp + 0x1a], al
cmp byte [ebp + 0x20], 0
je 0x4d8cce
mov dword [ebx], ecx
jmp 0x4d8cce
cmp byte [ebp + 0x20], 0
je 0x4d8c67
cmp edi, ecx
jne 0x4d8c67
inc esi
jmp 0x4d8cca
comisd xmm4, xmm1
jbe 0x4d8c75
movsd qword [esp + 0x58], xmm1
jmp 0x4d8c82
movaps xmm0, xmm1
maxsd xmm0, xmm5
movsd qword [esp + 0x60], xmm0
test dl, dl
je 0x4d8cca
addsd xmm1, xmm2
sub esp, 8
movsd qword [esp + 0x80], xmm1
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.0068ef00
mov edx, dword [esp + 0x24]
xor ecx, ecx
fstp qword [esp + 0x80]
cvttsd2si eax, qword [esp + 0x80]
add esp, 8
movzx edx, dl
cmp edi, eax
cmovne edx, ecx
mov dword [esp + 0x1c], edx
mov al, byte [esp + 0x1a]
movsd xmm5, qword [esp + 0x60]
add ebx, 4
sub dword [esp + 0x40], 1
movsd xmm2, qword [0x6be228]
mov ecx, dword [esp + 0x20]
jne 0x4d8c30
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x1a], al
movsd qword [esp + 0x60], xmm5
movsd qword [esp + 0x70], xmm0
jmp 0x4d8de8
mov ecx, edi
mov dword [esp + 0x40], edi
nop dword [eax + eax]
mov edi, dword [ebx]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
ucomisd xmm1, xmm1
setp al
cmp al, 1
jne 0x4d8d4c
mov byte [esp + 0x1a], al
inc esi
jmp 0x4d8dc4
cmp byte [ebp + 0x20], 0
je 0x4d8d5b
cmp edi, dword [esp + 0x20]
jne 0x4d8d5b
inc esi
jmp 0x4d8dc4
comisd xmm4, xmm1
jbe 0x4d8d69
movsd qword [esp + 0x58], xmm1
jmp 0x4d8d76
movaps xmm0, xmm1
maxsd xmm0, xmm5
movsd qword [esp + 0x60], xmm0
test dl, dl
je 0x4d8dc4
addsd xmm1, xmm2
sub esp, 8
movsd qword [esp + 0x80], xmm1
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.0068ef00
mov ecx, dword [esp + 0x24]
xor edx, edx
fstp qword [esp + 0x80]
cvttsd2si eax, qword [esp + 0x80]
add esp, 8
movzx ecx, cl
cmp edi, eax
cmovne ecx, edx
mov dl, cl
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
movsd xmm4, qword [esp + 0x58]
add ebx, 4
movsd xmm5, qword [esp + 0x60]
sub ecx, 1
movsd xmm2, qword [0x6be228]
mov dword [esp + 0x40], ecx
jne 0x4d8d30
mov edi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x30]
cmp esi, edi
jne 0x4d8e08
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x28]
mov eax, dword [eax]
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x28]
mov byte [eax], 1
jmp 0x4d8e21
mov eax, dword [esp + 0x2c]
test esi, esi
mov esi, dword [esp + 0x28]
mov ecx, 1
movzx eax, al
cmovg eax, ecx
mov dword [esp + 0x2c], eax
movsd xmm4, qword [esp + 0x58]
lea eax, [edi*4]
movsd xmm2, qword [0x6be228]
inc esi
add ebx, eax
mov dword [esp + 0x28], esi
sub dword [esp + 0x48], 1
mov dword [esp + 0x30], ebx
jne 0x4d8c00
mov ebx, dword [esp + 0x1c]
movaps xmm1, xmm5
movsd xmm6, qword [esp + 0x70]
mov al, bl
mov ebx, dword [esp + 0x2c]
movaps xmm2, xmm6
movsd xmm7, qword [esp + 0x68]
mov cl, bl
mov edx, dword [esp + 0x24]
movaps xmm3, xmm7
mov edi, dword [esp + 0x54]
movaps xmm0, xmm4
mov ah, byte [esp + 0x1a]
add dword [esp + 0x3c], edi
mov ch, ah
sub dword [esp + 0x50], 1
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov ebx, edx
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x78], xmm3
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x48], xmm0
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1a], ah
movsd qword [esp + 0x58], xmm4
movsd qword [esp + 0x60], xmm5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
movsd qword [esp + 0x68], xmm7
movsd qword [esp + 0x70], xmm6
jne 0x4d8bd0
mov esi, dword [ebp + 0x2c]
xor ebx, ebx
test edx, edx
movzx eax, al
cmovne ebx, eax
mov byte [esi], cl
test ch, ch
je 0x4d8f0c
cmp edi, 1
jle 0x4d8f0c
test cl, cl
je 0x4d8f0c
cmp byte [ebp + 0x20], 0
jne 0x4d8f0c
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x1c]
mov byte [esp + 0x3c], bl
movsd xmm4, qword [edi]
movsd qword [esp + 0x60], xmm4
test bl, bl
je 0x4d8fbe
comisd xmm0, xmm2
jb 0x4d8f41
comisd xmm3, xmm0
jb 0x4d8f41
comisd xmm1, xmm2
jb 0x4d8f41
comisd xmm3, xmm1
jb 0x4d8f41
mov al, 1
jmp 0x4d8f43
xor al, al
and bl, al
mov byte [esp + 0x3c], bl
test cl, cl
je 0x4d8f8c
mov esi, dword [esp + 0x20]
push esi
call fcn.004dd410
add esp, 4
test al, al
je 0x4d8f7e
movd xmm0, esi
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [esp + 0x40]
jb 0x4d8f7e
movsd xmm1, qword [esp + 0x78]
comisd xmm1, xmm0
jb 0x4d8f7e
mov al, 1
jmp 0x4d8f80
xor al, al
movsd xmm4, qword [esp + 0x60]
and bl, al
mov byte [esp + 0x3c], bl
test bl, bl
je 0x4d8fbe
fld qword [edi]
sub esp, 8
fstp qword [esp]
call fcn.0068ef00
fstp qword [esp + 0x80]
movsd xmm4, qword [esp + 0x80]
add esp, 8
maxsd xmm4, qword [0x6be228]
movsd qword [esp + 0x60], xmm4
mov eax, dword [ebp + 0x30]
xorps xmm5, xmm5
ucomisd xmm4, xmm5
mov byte [eax], bl
lahf
test ah, 0x44
jnp 0x4d905c
cmp byte [ebp + 0x20], 0
je 0x4d9065
test bl, bl
je 0x4d9006
fld qword [esp + 0x60]
sub esp, 8
fstp qword [esp]
call fcn.0068ef00
movsd xmm4, qword [esp + 0x68]
add esp, 8
fstp qword [esp + 0x78]
movsd xmm1, qword [esp + 0x78]
jmp 0x4d900d
movaps xmm1, xmm4
addsd xmm1, xmm4
mov esi, dword [esp + 0x20]
movsd xmm2, qword [esp + 0x48]
movaps xmm0, xmm2
subsd xmm0, xmm1
movd xmm3, esi
cvtdq2pd xmm3, xmm3
comisd xmm3, xmm0
jb 0x4d906f
movsd xmm0, qword [esp + 0x30]
addsd xmm0, xmm1
comisd xmm0, xmm3
jb 0x4d906f
test bl, bl
je 0x4d9055
movsd xmm0, qword [0x6be228]
xor eax, eax
movsd qword [edi], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movsd qword [edi], xmm0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsd xmm2, qword [esp + 0x48]
mov esi, dword [esp + 0x20]
cmp byte [esp + 0x1b], 0
je 0x4d9158
movsd xmm0, qword [esp + 0x40]
lea eax, [esp + 0x50]
push eax
sub esp, 8
mov dword [esp + 0x5c], esi
movsd qword [esp], xmm0
push dword [esp + 0x48]
sub esp, 0x10
movsd qword [esp + 8], xmm4
movsd qword [esp], xmm2
call fcn.004dbe70
add esp, 0x20
test al, al
je 0x4d9179
mov edx, dword [esp + 0x50]
cmp edx, esi
je 0x4d9158
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor edi, edi
imul ecx, ebx
mov dword [esp + 0x40], eax
shl ecx, 2
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x10]
nop word [eax + eax]
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], ebx
mov esi, dword [esi]
add esi, eax
mov dword [esp + 0x50], esi
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp byte [edi + eax], 0
je 0x4d911a
mov eax, esi
mov esi, dword [esp + 0x20]
cmp dword [eax], esi
jne 0x4d9107
mov dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x4d9101
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x10]
lea eax, [ecx*4]
inc edi
add esi, eax
sub ebx, 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ebx
jne 0x4d90f0
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x54]
sub dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
jne 0x4d90e0
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x1c]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movsd qword [eax], xmm0
movsd xmm1, qword [esp + 0x60]
movsd xmm0, qword [edi]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4d9170
movsd qword [edi], xmm1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movd xmm0, esi
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [esp + 0x48]
jb 0x4d9158
test bl, bl
je 0x4d9197
movsd xmm1, qword [0x6be228]
jmp 0x4d915e
xorps xmm1, xmm1
jmp 0x4d915e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret