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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x575a10
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ecx, ecx
mov eax, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0xc0], ecx
movsd qword [esp + 0x5c], xmm0
movsd qword [esp + 0x54], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0xc], edi
jle 0x4c36b9
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x18]
cmp dword [eax + 8], edi
mov esi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x14]
setge byte [esp + 0x17]
lea eax, [edi - 1]
mov dword [esp + 0x18], eax
cmp esi, ecx
je 0x4c378a
mov ecx, esi
mov dword [esp + 0x20], 2
call fcn.004733c0
fstp st(0)
mov eax, dword [ebx]
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x18]
subsd xmm2, qword [eax + 8]
movsd xmm1, qword [esi]
mulsd xmm1, xmm0
movq qword [esp + 0x54], xmm0
movsd xmm0, qword [esi + 8]
mulsd xmm0, xmm2
addsd xmm1, xmm0
movq qword [esp + 0x5c], xmm2
movsd xmm2, qword [0x57e380]
movapd xmm0, xmm1
andpd xmm0, xmmword [0x57ca30]
comisd xmm2, xmm0
jbe 0x4c374d
lea ecx, [esp + 0x54]
call fcn.00472ec0
fstp qword [esp + 0x34]
movsd xmm1, qword [esp + 0x34]
movsd xmm0, qword [esi]
movsd xmm2, qword [esi + 8]
mulsd xmm0, xmm1
movsd qword [esi], xmm0
mulsd xmm2, xmm1
movsd qword [esi + 8], xmm2
mov eax, dword [ebx]
movsd xmm1, qword [eax + 8]
addsd xmm0, qword [eax]
addsd xmm1, xmm2
movq qword [eax + 0x10], xmm0
movq qword [eax + 0x18], xmm1
mov dword [esp + 0x1c], 1
xor ecx, ecx
mov esi, dword [ebp + 0x28]
cmp esi, ecx
je 0x4c385b
mov ecx, esi
call fcn.004733c0
fstp st(0)
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
movsd xmm1, qword [esi]
mov ebx, edi
add ebx, 0xfffffffe
add ebx, ebx
movsd xmm0, qword [eax + ebx*8]
movsd xmm2, qword [eax + ebx*8 + 8]
add edi, edi
subsd xmm0, qword [eax + edi*8 - 0x10]
subsd xmm2, qword [eax + edi*8 - 8]
mulsd xmm1, xmm0
movq qword [esp + 0x54], xmm0
movsd xmm0, qword [esi + 8]
mulsd xmm0, xmm2
addsd xmm1, xmm0
movq qword [esp + 0x5c], xmm2
movsd xmm2, qword [0x57e380]
movapd xmm0, xmm1
andpd xmm0, xmmword [0x57ca30]
comisd xmm2, xmm0
jbe 0x4c3811
lea ecx, [esp + 0x54]
call fcn.00472ec0
fstp qword [esp + 0x34]
movsd xmm1, qword [esp + 0x34]
movsd xmm0, qword [esi]
movsd xmm2, qword [esi + 8]
mov edx, dword [ebp + 0x14]
mulsd xmm0, xmm1
movsd qword [esi], xmm0
mulsd xmm2, xmm1
movsd qword [esi + 8], xmm2
mov eax, dword [edx]
movsd xmm1, qword [eax + edi*8 - 8]
addsd xmm0, qword [eax + edi*8 - 0x10]
mov edi, dword [ebp + 8]
movq qword [eax + ebx*8], xmm0
addsd xmm1, xmm2
movq qword [eax + ebx*8 + 8], xmm1
mov eax, 1
add dword [esp + 0x1c], eax
sub dword [esp + 0x18], eax
cmp dword [ebp + 0xc], 2
jne 0x4c387b
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ebx, edi
sub ebx, dword [esp + 0x1c]
xor ecx, ecx
sub ebx, 2
mov esi, ebx
imul esi, ebx
mov eax, esi
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x28], ebx
neg ecx
or ecx, eax
push ecx
call fcn.005518e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4c369f
push ebx
lea ecx, [esp + 0x4c]
call fcn.0045cdc0
mov ecx, dword [esp + 0x1c]
lea eax, [esi*8]
push eax
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x64]
call fcn.0047e760
mov eax, dword [ebp + 0x1c]
add edi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], 0
movsd xmm1, qword [ecx + edi*8 - 8]
mov byte [esp + 0xc0], 1
movsd qword [esp + 0x3c], xmm1
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x18]
jge 0x4c3d24
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov edi, eax
jmp 0x4c392a
movsd xmm1, qword [esp + 0x3c]
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
movsd xmm0, qword [ecx + edx*8]
comisd xmm0, xmm1
jbe 0x4c3942
movapd xmm0, xmm1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
sub esp, 8
movsd qword [esp], xmm0
push eax
lea ecx, [esp + 0x7c]
call fcn.0047ed60
xorps xmm6, xmm6
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
movapd xmm1, xmm6
movapd xmm0, xmm6
movapd xmm5, xmm6
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
mov dword [esp + 0x2c], ecx
mov esi, eax
cmp eax, ecx
jg 0x4c3c95
mov edx, ecx
sub edx, eax
inc edx
cmp edx, 4
jl 0x4c3bf4
add ecx, 0xfffffffd
sub eax, dword [ebp + 8]
mov dword [esp + 0x34], ecx
lea edx, [eax + 2]
nop
mov eax, dword [esp + 0x64]
movsd xmm4, qword [eax + esi*8]
ucomisd xmm4, xmm6
lahf
test ah, 0x44
jnp 0x4c3a38
mov eax, esi
cmp esi, dword [ebp + 8]
jl 0x4c39cd
lea eax, [edx - 2]
cmp byte [esp + 0x17], 0
je 0x4c39e6
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mulsd xmm4, qword [ecx + eax*8]
movapd xmm2, xmm4
addsd xmm5, xmm2
cmp eax, edi
jl 0x4c3a0b
cmp eax, dword [esp + 0x18]
jge 0x4c3a0b
mov ecx, dword [esp + 0x1c]
sub eax, edi
add eax, ebx
movsd qword [ecx + eax*8], xmm4
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
jmp 0x4c3a38
mov ecx, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ecx]
movapd xmm2, xmm4
movsd xmm3, qword [eax + 8]
mulsd xmm2, qword [eax]
mulsd xmm3, xmm4
addsd xmm1, xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x64]
movsd xmm4, qword [eax + esi*8 + 8]
ucomisd xmm4, xmm6
lahf
test ah, 0x44
jnp 0x4c3ac9
mov ecx, dword [ebp + 8]
lea eax, [ecx + edx - 1]
cmp eax, ecx
jl 0x4c3a5e
lea eax, [edx - 1]
cmp byte [esp + 0x17], 0
je 0x4c3a77
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mulsd xmm4, qword [ecx + eax*8]
movapd xmm2, xmm4
addsd xmm5, xmm2
cmp eax, edi
jl 0x4c3a9c
cmp eax, dword [esp + 0x18]
jge 0x4c3a9c
mov ecx, dword [esp + 0x1c]
sub eax, edi
add eax, ebx
movsd qword [ecx + eax*8], xmm4
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
jmp 0x4c3ac9
mov ecx, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ecx]
movapd xmm2, xmm4
movsd xmm3, qword [eax + 8]
mulsd xmm2, qword [eax]
mulsd xmm3, xmm4
addsd xmm1, xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x64]
movsd xmm4, qword [eax + esi*8 + 0x10]
ucomisd xmm4, xmm6
lahf
test ah, 0x44
jnp 0x4c3b53
mov ecx, dword [ebp + 8]
lea eax, [edx + ecx]
cmp eax, ecx
cmovge eax, edx
cmp byte [esp + 0x17], 0
je 0x4c3b01
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mulsd xmm4, qword [ecx + eax*8]
movapd xmm2, xmm4
addsd xmm5, xmm2
cmp eax, edi
jl 0x4c3b26
cmp eax, dword [esp + 0x18]
jge 0x4c3b26
mov ecx, dword [esp + 0x1c]
sub eax, edi
add eax, ebx
movsd qword [ecx + eax*8], xmm4
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
jmp 0x4c3b53
mov ecx, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ecx]
movapd xmm2, xmm4
movsd xmm3, qword [eax + 8]
mulsd xmm2, qword [eax]
mulsd xmm3, xmm4
addsd xmm1, xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x64]
movsd xmm4, qword [eax + esi*8 + 0x18]
ucomisd xmm4, xmm6
lahf
test ah, 0x44
jnp 0x4c3be4
mov ecx, dword [ebp + 8]
lea eax, [ecx + edx + 1]
cmp eax, ecx
jl 0x4c3b79
lea eax, [edx + 1]
cmp byte [esp + 0x17], 0
je 0x4c3b92
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mulsd xmm4, qword [ecx + eax*8]
movapd xmm2, xmm4
addsd xmm5, xmm2
cmp eax, edi
jl 0x4c3bb7
cmp eax, dword [esp + 0x18]
jge 0x4c3bb7
mov ecx, dword [esp + 0x1c]
sub eax, edi
add eax, ebx
movsd qword [ecx + eax*8], xmm4
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
jmp 0x4c3be4
mov ecx, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ecx]
movapd xmm2, xmm4
movsd xmm3, qword [eax + 8]
mulsd xmm2, qword [eax]
mulsd xmm3, xmm4
addsd xmm1, xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
add esi, 4
add edx, 4
cmp esi, dword [esp + 0x34]
jle 0x4c39b0
cmp esi, dword [esp + 0x2c]
jg 0x4c3c95
mov edx, esi
sub edx, dword [ebp + 8]
mov eax, dword [esp + 0x64]
movsd xmm4, qword [eax + esi*8]
ucomisd xmm4, xmm6
lahf
test ah, 0x44
jnp 0x4c3c89
cmp esi, dword [ebp + 8]
mov eax, esi
cmovge eax, edx
cmp byte [esp + 0x17], 0
je 0x4c3c37
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mulsd xmm4, qword [ecx + eax*8]
movapd xmm2, xmm4
addsd xmm5, xmm2
cmp eax, edi
jl 0x4c3c5c
cmp eax, dword [esp + 0x18]
jge 0x4c3c5c
mov ecx, dword [esp + 0x1c]
sub eax, edi
add eax, ebx
movsd qword [ecx + eax*8], xmm4
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
jmp 0x4c3c89
mov ecx, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ecx]
movapd xmm2, xmm4
movsd xmm3, qword [eax + 8]
mulsd xmm2, qword [eax]
mulsd xmm3, xmm4
addsd xmm1, xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
inc esi
inc edx
cmp esi, dword [esp + 0x2c]
jle 0x4c3c03
cmp byte [esp + 0x17], 0
je 0x4c3cf3
ucomisd xmm5, xmm6
lahf
test ah, 0x44
jnp 0x4c3cf3
mov edx, dword [esp + 0x28]
add edx, ebx
mov ecx, ebx
cmp ebx, edx
jge 0x4c3cdf
mov esi, dword [esp + 0x1c]
movsd xmm0, qword [esi + ecx*8]
ucomisd xmm0, xmm6
lahf
test ah, 0x44
jnp 0x4c3cce
divsd xmm0, xmm5
movsd qword [esi + ecx*8], xmm0
inc ecx
cmp ecx, edx
jl 0x4c3cb6
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [esp + 0x54]
divsd xmm1, xmm5
divsd xmm0, xmm5
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add ebx, dword [esp + 0x28]
movq qword [eax], xmm1
movq xmm0, qword [esp + 0x5c]
inc ecx
movq qword [eax + 8], xmm0
add eax, 0x10
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
cmp ecx, dword [esp + 0x18]
jl 0x4c3924
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, edi
cmp edi, esi
jge 0x4c3e34
mov eax, esi
sub eax, edi
cmp eax, 4
jl 0x4c3df3
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, edi
add ecx, ecx
sub esi, edi
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0x48]
sub esi, 4
lea eax, [edx + 0x10]
shr esi, 2
add edx, 0x28
add ecx, 0x28
inc esi
lea ebx, [edi + esi*4]
jmp 0x4c3d70
movsd xmm0, qword [eax - 0x10]
subsd xmm0, qword [ecx - 0x28]
movsd qword [eax - 0x10], xmm0
movsd xmm0, qword [eax - 8]
subsd xmm0, qword [ecx - 0x20]
movsd qword [eax - 8], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [ecx - 0x18]
movsd qword [eax], xmm0
movsd xmm0, qword [edx - 0x10]
subsd xmm0, qword [ecx - 0x10]
movsd qword [edx - 0x10], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ecx - 8]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [edx]
subsd xmm0, qword [ecx]
movsd qword [edx], xmm0
movsd xmm0, qword [eax + 0x20]
subsd xmm0, qword [ecx + 8]
movsd qword [eax + 0x20], xmm0
movsd xmm0, qword [edx + 0x10]
subsd xmm0, qword [ecx + 0x10]
movsd qword [edx + 0x10], xmm0
add eax, 0x40
add edx, 0x40
add ecx, 0x40
dec esi
jne 0x4c3d70
mov esi, dword [esp + 0x18]
cmp ebx, esi
jge 0x4c3e34
mov ecx, dword [ebp + 0x14]
mov eax, ebx
shl eax, 4
add eax, dword [ecx]
mov ecx, ebx
sub ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x48]
sub esi, ebx
mov edi, edi
movsd xmm0, qword [eax]
subsd xmm0, qword [ecx]
movsd qword [eax], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ecx + 8]
movsd qword [eax + 8], xmm0
add ecx, 0x10
add eax, 0x10
dec esi
jne 0x4c3e10
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
shl edi, 4
add edi, dword [edx]
push 0
push edi
push 2
push esi
push eax
call fcn.00480530
fstp qword [esp + 0x50]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
fld qword [esp + 0x54]
fabs
add esp, 0x18
fldz
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x4c3e71
mov bl, 1
jmp 0x4c3e73
xor bl, bl
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 0
call fcn.0047e7e0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c3e96
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24