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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x78], eax
cmp edx, 2
jl 0x47d74e
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
sar eax, 4
imul eax, eax, 0xcccccccd
lea edi, [edx - 2]
shr edi, 1
mov dword [esp + 0x1c], edi
cmp edi, eax
jl 0x47d74e
lea ebx, [eax + eax]
inc ebx
lea edi, [ebx + ebx*4]
shl edi, 4
mov dword [esp + 8], edi
add edi, ecx
add eax, eax
add eax, 2
cmp eax, edx
mov dword [esp + 0x14], ecx
jge 0x47d598
mov dword [esp + 0xc], ebx
mov ebx, dword [edi + 0x78]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
cmp ebx, dword [ecx + eax + 0x28]
mov ebx, dword [edi + 0x7c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
sbb ebx, dword [ecx + eax + 0x2c]
lea ecx, [edi + 0x50]
cmovl edi, ecx
mov ecx, dword [esp + 0xc]
cmovl ecx, dword [esp + 0x10]
jmp 0x47d59a
mov ecx, ebx
mov eax, dword [esi + 0x28]
cmp eax, dword [edi + 0x28]
mov eax, dword [esi + 0x2c]
sbb eax, dword [edi + 0x2c]
jl 0x47d74e
mov dword [esp + 0x18], edx
lea ebx, [esi + 0x28]
mov dword [esp + 8], edi
lea edi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
movups xmm0, xmmword [esi]
movaps xmmword [edi - 0x10], xmm0
lea eax, [esi + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, edi
push eax
call fcn.004a1c90
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x24]
mov dword [edi + 0x14], eax
movsd xmm0, qword [esi + 0x1c]
movsd qword [edi + 0xc], xmm0
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
movsd xmm0, qword [ebx + 0x20]
movsd qword [edi + 0x38], xmm0
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [ebx + 0x10]
movups xmmword [edi + 0x28], xmm1
movups xmmword [edi + 0x18], xmm0
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov ebx, eax
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
lea ecx, [esi + 0x10]
add eax, 0x10
mov dword [esp + 0x10], eax
push eax
call fcn.00449840
lea edi, [esi + 0x1c]
cmp byte [esi + 0x27], 0
jns 0x47d653
push dword [edi]
call fcn.004c5c98
add esp, 4
mov eax, dword [ebx + 0x24]
mov dword [edi + 8], eax
movsd xmm0, qword [ebx + 0x1c]
movsd qword [edi], xmm0
xor eax, eax
mov byte [ebx + 0x27], al
mov byte [ebx + 0x1c], al
movsd xmm0, qword [ebx + 0x48]
movsd qword [esi + 0x48], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmm1, xmmword [ebx + 0x38]
movups xmmword [esi + 0x38], xmm1
movups xmmword [esi + 0x28], xmm0
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x1c], ecx
jl 0x47d6e1
lea eax, [ecx + ecx]
inc eax
mov dword [esp + 8], eax
lea edx, [eax + eax*4]
shl edx, 4
mov edi, dword [esp + 0x14]
lea eax, [edi + edx]
add ecx, ecx
add ecx, 2
cmp ecx, dword [esp + 0x18]
jge 0x47d6be
mov esi, dword [eax + 0x78]
cmp esi, dword [edi + edx + 0x28]
mov esi, dword [eax + 0x7c]
sbb esi, dword [edi + edx + 0x2c]
jl 0x47d6c4
mov edi, dword [esp + 8]
jmp 0x47d6c9
add eax, 0x50
mov edi, ecx
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x28]
mov ecx, dword [esp + 0x4c]
sbb ecx, dword [eax + 0x2c]
mov esi, ebx
mov ecx, edi
jge 0x47d624
lea edi, [ebx + 0x1c]
lea eax, [ebx + 0x28]
mov dword [esp + 0xc], eax
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [ebx], xmm0
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x30]
push esi
call fcn.00449840
cmp byte [ebx + 0x27], 0
jns 0x47d711
push dword [edi]
call fcn.004c5c98
add esp, 4
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
movsd xmm0, qword [esi + 0xc]
movsd qword [edi], xmm0
xor eax, eax
mov byte [esp + 0x47], al
mov byte [esp + 0x3c], al
movsd xmm0, qword [esi + 0x38]
mov eax, dword [esp + 0xc]
movsd qword [eax + 0x20], xmm0
movups xmm0, xmmword [esi + 0x18]
movups xmm1, xmmword [esi + 0x28]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
mov ecx, esi
call fcn.004a1da0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004c66e3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret