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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x18]
mov edx, dword [eax + 0x2ac]
add edx, 4
mov dword [esp + 0x1c], ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x50]
push 8
pop ecx
push dword [ebp + 0x18]
movd xmm0, eax
lea esi, [ebp + 0x20]
mov eax, dword [ebp + 0x10]
lea edi, [esp + 0x5c]
cvtdq2pd xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mulsd xmm0, qword [eax + 0x68]
mov ecx, dword [ebp + 0x14]
cvttsd2si eax, xmm0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x40]
sub eax, dword [ecx + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.0049bcf5
cmp dword [esp + 0x28], 0
je 0x4b73cd
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
push dword [esi + 0x11c]
push esi
call fcn.004bf58a
add esp, 0xc
test al, al
je 0x4b73cd
mov al, byte [ebp + 0x44]
and al, 1
mov byte [esp + 0x13], al
je 0x4b7027
mov eax, dword [esi + 0x14]
lea esi, [esp + 0x58]
mov ecx, dword [ebp + 8]
push dword [eax + 0x5c]
mov edx, dword [ecx]
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 + 0x48]
mov esi, dword [ebp + 0x10]
jmp 0x4b702a
mov edi, dword [ebp + 8]
movd xmm0, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
cvtdq2pd xmm0, xmm0
cmp byte [eax + 0xc], 0
lea eax, [esi + 0x118]
mov dword [esp + 0xc], eax
movsd qword [esp + 0x58], xmm0
jne 0x4b705a
cmp dword [eax], 2
je 0x4b7056
cmp dword [eax], 3
jne 0x4b70cd
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 0x11c]
push esi
push edi
call fcn.004bf5da
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
je 0x4b707f
cmp dword [eax], 3
jne 0x4b70bd
movsd xmm0, qword [esi + 0x68]
mulsd xmm0, qword [0x53deb0]
cvttsd2si eax, xmm0
add ecx, eax
mov eax, dword [ebp + 0x1c]
add eax, dword [esp + 0x14]
movd xmm0, ecx
movd xmm1, eax
mov eax, dword [esp + 0xc]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x58], xmm1
addsd xmm0, xmm1
movsd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x18]
cmp ecx, dword [edx + 0x20]
jle 0x4b70cd
mov dword [edx + 0x20], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x18]
mov ecx, dword [eax + 0x2ac]
call fcn.0049bba4
xor esi, esi
mov dword [esp + 0x20], eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.004bdcf2
xor edi, edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], esi
jle 0x4b7120
cmp esi, dword [esp + 0x24]
jae 0x4b7118
inc eax
lea ecx, [esp + 0x24]
add esi, eax
push esi
call fcn.004bdcf2
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4b70fe
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cmp byte [esp + 0x13], 0
lea esi, [esp + 0x58]
push 8
pop ecx
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
je 0x4b71a5
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
je 0x4b7142
cmp dword [eax], 3
jne 0x4b71a5
cmp byte [esp + 0x2c], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
je 0x4b7163
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
movzx ecx, byte [eax + ecx]
jmp 0x4b7167
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
lea esi, [esp + 0x58]
mov eax, dword [edx + 0x11c]
add eax, ecx
imul ecx, eax, 0x78
mov eax, dword [edx + 0x14]
push dword [ecx + eax + 0x5c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
movsd xmm0, qword [esp + 0x78]
addsd xmm0, qword [eax + 0x68]
movsd qword [esp + 0x78], xmm0
push dword [ebp + 0x44]
lea eax, [esp + 0x28]
push dword [esp + 0x18]
lea esi, [esp + 0x80]
push dword [esp + 0x20]
push eax
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push dword [esi + 0x11c]
push esi
push edi
call fcn.004bbb9a
add esp, 0x3c
cmp byte [esp + 0x13], 0
je 0x4b7404
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x4b7404
imul ecx, dword [esi + 0x11c], 0x78
mov eax, dword [esi + 0x14]
mov eax, dword [ecx + eax + 0x58]
mov ecx, edi
mov dword [esp + 0xc], eax
mov eax, dword [edi]
call dword [eax + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004ae44d
movsd xmm0, qword [0x53dce8]
lea esi, [esp + 0x84]
mov eax, dword [edi]
add esp, 4
mov eax, dword [eax + 0x44]
movsd qword [esp], xmm0
push 0
sub esp, 0x20
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc4]
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 + 0x68]
mov eax, dword [esp + 0x3c]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
lea esi, [esp + 0x3c]
sub esp, 0x20
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 dword [esp + 0x38]
movsd xmm0, qword [0x53dce8]
mov eax, dword [esi]
lea esi, [esp + 0x78]
push ecx
push ecx
movsd qword [esp], xmm0
mov eax, dword [eax + 0x44]
push 3
sub esp, 0x20
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc4]
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 + 0x68]
mov eax, dword [esp + 0x3c]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
lea esi, [esp + 0x3c]
sub esp, 0x20
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 dword [esp + 0x38]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [eax + 0x48]
jne 0x4b7358
movsd xmm0, qword [0x53dce8]
mov eax, dword [esi]
lea esi, [esp + 0x78]
push ecx
push ecx
movsd qword [esp], xmm0
mov eax, dword [eax + 0x44]
push 1
sub esp, 0x20
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc4]
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 + 0x68]
mov eax, dword [esp + 0x3c]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
lea esi, [esp + 0x3c]
sub esp, 0x20
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 dword [esp + 0x38]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x20]
dec eax
add eax, ecx
cmp dword [ebp + 0x40], eax
jne 0x4b7404
movsd xmm0, qword [0x53dce8]
mov eax, dword [esi]
lea esi, [esp + 0x78]
push ecx
push ecx
movsd qword [esp], xmm0
mov eax, dword [eax + 0x44]
push 2
sub esp, 0x20
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xc4]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004ae4e1
push 8
pop ecx
add esp, 0x2c
lea edi, [esp + 0x3c]
mov edx, esp
mov esi, eax
mov eax, dword [esp + 0x10]
sub esp, 0x20
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x5c]
mov dword [edx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [esp + 0x44]
jmp 0x4b7404
test byte [ebp + 0x44], 1
je 0x4b7404
mov eax, dword [ebp + 8]
lea esi, [esp + 0x58]
push 8
pop ecx
lea edi, [esp + 0x38]
mov eax, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x44]
lea esi, [esp + 0x38]
push ecx
mov eax, esp
sub esp, 0x20
push 8
pop ecx
mov edi, esp
mov dword [eax], 0xfffe00ff
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x40