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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x18]
mov edx, dword [ecx + 0x2ac]
add edx, 4
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 8
pop ecx
lea esi, [ebp + 0x20]
mov dword [esp + 0x34], eax
lea edi, [esp + 0x48]
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
xorps xmm1, xmm1
mov edi, dword [ebp + 0x10]
add edi, 0x14
movsd qword [esp + 0x98], xmm0
movsd qword [esp + 0x90], xmm1
mov ecx, dword [esi + 0x48]
dec ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], ecx
cmp dword [ebp + 0x40], ecx
jne 0x4b8257
mov ecx, esi
call fcn.004b2a0b
push dword [ebp + 0x18]
imul ecx, eax, 0x78
mov eax, dword [edi]
mov edi, dword [ebp + 0xc]
movsd xmm0, qword [ecx + eax + 0x48]
mov ecx, dword [edi + 0x2ac]
add ecx, 4
movsd qword [esp + 0x6c], xmm0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
lea ecx, [edi + 0x244]
call fcn.00495399
mov edi, dword [esp + 0x18]
xorps xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0x90], xmm1
jmp 0x4b825b
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp + 0x44]
and dword [esp + 0x78], 0
comisd xmm1, xmm0
movsd xmm2, qword [ecx + eax*8]
subsd xmm2, qword [ebp + 0x48]
movsd qword [esp + 0x80], xmm2
jbe 0x4b8375
cmp byte [ebp + 0x54], 0
movd xmm0, dword [ebp + 0x1c]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm2
movsd qword [esp + 0x48], xmm0
addsd xmm0, xmm1
movsd qword [esp + 0x58], xmm0
je 0x4b82ab
mov eax, dword [ebp + 0x50]
jmp 0x4b82be
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x18]
movzx eax, byte [ecx + eax]
imul ecx, eax, 0x78
mov eax, dword [edi]
mov eax, dword [ecx + eax + 0x5c]
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x48]
mov ecx, dword [ecx]
push ecx
mov edx, dword [ecx + 0x48]
mov ecx, esp
sub esp, 0x20
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call edx
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x78], 0
je 0x4b837b
cmp dword [esi + 0x7c], 0
jne 0x4b837b
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x18]
mov ecx, dword [esi + 0x2ac]
lea edi, [esi + 0x244]
add ecx, 4
mov dword [esp + 0x14], edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
mov ecx, edi
call fcn.00495399
mov edx, dword [esi + 0x2ac]
mov edi, eax
push dword [ebp + 0x18]
add edx, 4
push edx
mov ecx, dword [edx]
call dword [ecx + 0x54]
mov ecx, dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 0x18]
xor eax, eax
test edi, edi
mov edx, dword [ecx + 0x2ac]
cmovs edi, eax
add edx, 4
push edx
mov ecx, dword [edx]
call dword [ecx + 0x54]
push edi
push esi
xor esi, esi
lea ecx, [esp + 0xa8]
push esi
push eax
call fcn.0047c9b7
mov edi, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.00494a27
test eax, eax
jne 0x4b83e7
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp byte [esi + 0x78], al
je 0x4b839e
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x40], ecx
jne 0x4b839e
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.00478b61
mov dword [esp + 0x1c], eax
push eax
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.004bf15e
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov esi, dword [esp + 0x20]
cmp dword [ebp + 0x40], eax
jne 0x4b88ba
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xc], edx
cmp edx, dword [eax + 0x18]
jge 0x4b88ba
mov ecx, dword [ebp + 0xc]
lea edi, [ecx + 0x10]
mov dword [esp + 0x30], edi
jmp 0x4b8530
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.00494ec1
sub esp, 0x10
lea esi, [esp + 0xb0]
mov edi, esp
lea ecx, [esp + 0x78]
push ecx
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00494b70
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
call fcn.0047d535
test al, al
jne 0x4b850b
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.004b2a0b
movd xmm2, dword [ebp + 0x1c]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x34]
mov esi, dword [esi + 0x38]
movd xmm0, dword [esp + 0x6c]
cvtdq2pd xmm2, xmm2
imul ecx, eax, 0x78
mov eax, dword [esp + 0x18]
movaps xmm1, xmm2
addsd xmm1, qword [esi + edx*8]
mov edx, dword [esp + 0x70]
sub edx, dword [esp + 0x34]
mov eax, dword [eax]
cvtdq2pd xmm0, xmm0
subsd xmm1, qword [ebp + 0x48]
mulsd xmm0, qword [ecx + eax + 0x48]
addsd xmm2, qword [esi + edx*8]
addsd xmm1, xmm0
movd xmm0, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
subsd xmm2, qword [ebp + 0x48]
mulsd xmm0, qword [ecx + eax + 0x48]
movsd qword [esp + 0x48], xmm1
addsd xmm2, xmm0
movsd xmm0, qword [ebp + 0x20]
comisd xmm1, xmm0
movsd qword [esp + 0x58], xmm2
ja 0x4b84ac
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [ebp + 0x30]
comisd xmm0, xmm2
ja 0x4b84bd
movsd qword [esp + 0x58], xmm0
mov ecx, dword [ebp + 8]
push dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x34], eax
call fcn.00494edf
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push dword [ebp + 0xc]
push eax
call fcn.004bf15e
add esp, 0x10
lea esi, [esp + 0x48]
mov eax, dword [eax]
or eax, 0xff000000
push eax
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [esp + 0x54]
jmp 0x4b850e
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x14], esi
call fcn.00494a27
cmp esi, eax
jb 0x4b83e3
jmp 0x4b8378
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
push dword [esp + 0x1c]
push dword [ebp + 0x10]
movzx edi, byte [edx + eax]
lea eax, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x50], edi
call fcn.004bf1d8
add esp, 0x10
cmp byte [esp + 0x6c], 0
je 0x4b855d
mov edi, dword [esp + 0x68]
jmp 0x4b856a
mov ecx, dword [esp + 0x18]
imul eax, edi, 0x78
mov edi, dword [ecx]
mov edi, dword [eax + edi + 0x58]
and dword [esp + 0x38], 0
mov dword [esp + 0x2c], edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], 1
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x30]
sub eax, dword [esp + 0xc]
add ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004b3477
mov ecx, eax
test ecx, ecx
je 0x4b85a6
mov edx, dword [edi + 0x18]
sub edx, dword [esp + 0xc]
jmp 0x4b85c2
mov eax, dword [edi + 0x30]
add eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 1
push eax
call fcn.004b3477
xor edx, edx
mov ecx, eax
inc edx
test ecx, ecx
je 0x4b85f0
cmp dword [ecx + 0x14], 0x10
mov dword [esp + 0x10], ecx
jb 0x4b85d2
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x34], eax
shr eax, 4
test al, 1
je 0x4b8651
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x4b8651
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + eax]
mov byte [esp + 0x8c], al
cmp al, 0x80
jae 0x4b8624
push dword [esp + 0x8c]
call fcn.004b29be
pop ecx
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b861b
jmp 0x4b8648
movzx eax, al
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004b2c3f
pop ecx
lea eax, [esp + 0x3c]
pop ecx
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8641
sub ecx, edx
xor edx, edx
inc edx
mov dword [esp + 0x14], ecx
movd xmm0, dword [ebp + 0x1c]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0xc]
add edx, ecx
cvtdq2pd xmm0, xmm0
push ecx
mov dword [esp + 0x28], edx
push dword [esp + 0x44]
movaps xmm1, xmm0
addsd xmm0, qword [eax + edx*8]
addsd xmm1, qword [eax + ecx*8]
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x38]
subsd xmm0, qword [ebp + 0x48]
subsd xmm1, qword [ebp + 0x48]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
addsd xmm0, qword [esp + 0xa8]
addsd xmm1, qword [esp + 0xa8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
movsd qword [esp + 0x7c], xmm0
subsd xmm0, xmm1
push eax
movsd qword [esp + 0x70], xmm1
addsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 0xc0], xmm0
call fcn.004bf3d5
add esp, 0x28
cmp dword [esp + 0x1c], 0
je 0x4b872f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049ed7f
dec eax
cmp dword [ebp + 0x18], eax
jge 0x4b872f
mov edx, dword [ebp + 8]
lea ecx, [edi + 0x7c]
cmp dword [ecx], 0
mov dword [esp + 0xc], ecx
mov eax, dword [edx]
mov eax, dword [eax + 0x48]
jne 0x4b8710
or esi, 0xff000000
push esi
jmp 0x4b8714
push dword [esp + 0x28]
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0xc]
jmp 0x4b875f
push dword [esp + 0x28]
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x4c]
sub esp, 0x20
mov eax, dword [ecx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
cmp dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0x10]
lea edi, [ecx + 0x7c]
mov dword [esp + 0xc], edi
je 0x4b87dc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049ed7f
dec eax
cmp dword [ebp + 0x18], eax
jge 0x4b87dc
cmp dword [edi], 1
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 1
jne 0x4b87e5
mov eax, dword [esi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
push ecx
push ecx
movd xmm0, ecx
lea ecx, [esp + 0x30]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x53f28c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004ae201
mov eax, dword [eax]
jmp 0x4b87e5
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 0
test byte [esp + 0x34], 1
je 0x4b8827
mov ecx, dword [esp + 0x7c]
lea esi, [esp + 0x48]
cmp dword [ecx + 0x1c], 0
sete cl
movzx ecx, cl
push ecx
push dword [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push edi
call fcn.004bbeca
add esp, 0x3c
jmp 0x4b886f
push dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push dword [esp + 0x18]
movsd xmm0, qword [esp + 0x58]
push dword [esp + 0x18]
addsd xmm0, qword [eax + 0x50]
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
lea esi, [esp + 0x54]
push ecx
push ecx
mov eax, dword [eax]
movsd qword [esp], xmm0
push dword [eax + 0x1150]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [edx + 0x88]
cmp byte [esp + 0xb], 0
je 0x4b88a2
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x4b88a2
mov eax, dword [edi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call edx
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], edx
cmp edx, dword [eax + 0x18]
jl 0x4b852d
cmp dword [esp + 0x1c], 0
movd xmm0, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [esp + 0x80]
addsd xmm0, qword [esp + 0x90]
movsd qword [esp + 0x68], xmm0
addsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x48], xmm0
addsd xmm0, qword [eax + 0x60]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x58], xmm0
je 0x4b8949
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049ed7f
dec eax
cmp dword [ebp + 0x18], eax
jge 0x4b8949
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x7c], 0
jne 0x4b8949
mov eax, dword [edi]
or esi, 0xff000000
push esi
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
jmp 0x4b8a1b
cmp byte [ebp + 0x54], 0
je 0x4b8954
push dword [ebp + 0x50]
jmp 0x4b89bc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049ed7f
lea edx, [eax - 1]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x18]
mov al, byte [ecx + eax]
movzx eax, al
cmp dword [ebp + 0x18], edx
jge 0x4b89a0
mov edx, dword [edi]
lea esi, [esp + 0x48]
imul ecx, eax, 0x78
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push dword [ecx + eax + 0x5c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [edx + 0x48]
jmp 0x4b89d4
mov ecx, dword [esp + 0x18]
imul edx, eax, 0x78
mov ecx, dword [ecx]
cmp byte [edx + ecx + 0x60], 0
je 0x4b89b6
push dword [edx + ecx + 0x5c]
jmp 0x4b89bc
push dword [ecx + 0xf5c]
mov eax, dword [edi]
lea esi, [esp + 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
cmp dword [esp + 0x1c], 0
je 0x4b8a1b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049ed7f
mov edi, dword [ebp + 0x10]
dec eax
cmp dword [ebp + 0x18], eax
jge 0x4b8a1e
cmp dword [edi + 0x7c], 0
je 0x4b8a1e
mov eax, dword [esi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call edx
mov edi, dword [ebp + 0x10]
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [ebp + 0x20]
comisd xmm1, xmm0
movsd qword [esp + 0x48], xmm0
jbe 0x4b8a3e
movsd qword [esp + 0x48], xmm1
cmp dword [edi + 0x120], 0
movsd xmm0, qword [ebp + 0x30]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x58], xmm0
je 0x4b8a7f
push dword [ebp + 0x18]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049cbd6
mov byte [esp + 0xb], 1
cmp dword [eax + 4], 0
jne 0x4b8a84
mov byte [esp + 0xb], 0
mov eax, dword [ebp + 0x40]
cmp eax, dword [esp + 0x3c]
jne 0x4b8aa5
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.00478b02
test eax, eax
jne 0x4b8acd
cmp byte [esp + 0xb], al
jne 0x4b8acd
mov eax, dword [ebp + 0x40]
push eax
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.004bc951
add esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x40]
inc ecx
cmp ecx, dword [eax + 0x48]
jge 0x4b8c60
test byte [edi + 0x178], 1
je 0x4b8afa
push ecx
mov ecx, eax
call fcn.004b2e25
test eax, eax
setne al
mov byte [esp + 0x78], al
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x29]
mov ecx, edi
push eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x220]
push eax
call fcn.004ab92f
test al, al
je 0x4b8b9f
mov eax, dword [esi]
mov ecx, edi
push 0x32
mov eax, dword [eax + 0x48]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
call fcn.004ab7af
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.004ab8b9
push ecx
push ecx
lea esi, [ebp + 0x20]
movd xmm0, eax
lea eax, [esp + 0xc8]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 3
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004ae4e1
push 8
pop ecx
mov esi, eax
lea edi, [esp + 0xd0]
mov eax, dword [esp + 0x54]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
lea esi, [esp + 0xa4]
mov eax, esp
or ecx, 0xff000000
sub esp, 0x20
mov dword [eax], ecx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [esp + 0x64]
cmp byte [esp + 0x78], 0
je 0x4b8c60
mov eax, dword [ebp + 0x10]
lea esi, [esp + 0x48]
movsd xmm1, qword [esp + 0x80]
lea edi, [esp + 0xa0]
push 8
pop ecx
test byte [eax + 0x17c], 1
movsd xmm0, qword [eax + 0x60]
rep movsd dword es:[edi], dword [esi]
subsd xmm1, xmm0
je 0x4b8be4
minsd xmm1, qword [esp + 0x68]
addsd xmm0, xmm1
jmp 0x4b8be9
movsd xmm0, qword [ebp + 0x30]
mov ecx, dword [esp + 0x7c]
movsd qword [esp + 0xa0], xmm1
movsd qword [esp + 0xb0], xmm0
mov ecx, dword [ecx + 0x60]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4b8c35
lea edx, [esp + 0x44]
mov ecx, eax
push edx
call fcn.004ac297
lea esi, [esp + 0xa0]
push dword [eax]
push 1
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call fcn.004b496e
jmp 0x4b8c5d
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004ac297
lea esi, [esp + 0xa0]
push dword [eax]
push 1
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call dword [esp + 0x50]
add esp, 0x2c
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x50