Function at 0x470370
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 [0x58a014]
xor eax, ebp
mov dword [esp + 0x78], eax
cmp edx, 2
jl 0x4705e1
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 0x4705e1
lea edi, [eax + eax]
inc edi
mov dword [esp], edi
lea edi, [edi + edi*4]
shl edi, 4
lea ebx, [ecx + edi]
mov dword [esp + 4], ebx
add eax, eax
add eax, 2
cmp eax, edx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edx
jge 0x47040d
mov edx, dword [esp + 4]
mov ebx, dword [edx + 0x78]
mov ecx, dword [esp + 8]
cmp ebx, dword [ecx + edi + 0x28]
mov ebx, dword [edx + 0x7c]
mov ecx, dword [esp + 8]
sbb ebx, dword [ecx + edi + 0x2c]
mov ecx, dword [esp]
cmovl ecx, eax
setl al
movzx eax, al
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [esp + 4]
add ebx, eax
jmp 0x470414
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esi + 0x28]
cmp eax, dword [ebx + 0x28]
mov eax, dword [esi + 0x2c]
sbb eax, dword [ebx + 0x2c]
jl 0x4705e1
lea eax, [esi + 0x28]
mov dword [esp + 4], eax
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], ecx
mov ecx, edi
push eax
call fcn.00494350
mov edx, ebx
mov ecx, dword [esp]
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
mov eax, dword [esp + 4]
movsd xmm0, qword [eax + 0x20]
movsd qword [edi + 0x38], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [edi + 0x28], xmm1
movups xmmword [edi + 0x18], xmm0
mov dword [esp], ecx
mov ebx, edx
movups xmm0, xmmword [edx]
movups xmmword [esi], xmm0
lea ecx, [esi + 0x10]
lea eax, [edx + 0x10]
mov dword [esp + 4], eax
push eax
call fcn.0043d6e0
lea edi, [esi + 0x1c]
cmp byte [esi + 0x27], 0
jns 0x4704c8
push dword [edi]
call fcn.004ba1ee
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]
cmp dword [esp + 0x1c], ecx
jl 0x470576
lea eax, [ecx + ecx]
inc eax
lea edx, [eax + eax*4]
shl edx, 4
mov edi, dword [esp + 8]
lea esi, [edi + edx]
add ecx, ecx
add ecx, 2
cmp ecx, dword [esp + 0x18]
jge 0x47055c
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp], ecx
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + edx + 0x28]
mov ecx, dword [esp]
sbb ecx, dword [edi + edx + 0x2c]
mov ecx, dword [esp + 0x14]
setl dl
jl 0x47054f
mov ecx, dword [esp + 0xc]
movzx eax, dl
lea eax, [eax + eax*4]
shl eax, 4
add esi, eax
mov eax, ecx
mov edx, esi
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esi + 0x28]
mov ecx, dword [esp + 0x4c]
sbb ecx, dword [esi + 0x2c]
mov esi, ebx
mov ecx, eax
jge 0x47049a
lea edi, [ebx + 0x1c]
lea eax, [ebx + 0x28]
mov dword [esp], eax
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [ebx], xmm0
mov ecx, dword [esp + 4]
lea esi, [esp + 0x30]
push esi
call fcn.0043d6e0
cmp byte [ebx + 0x27], 0
jns 0x4705a5
push dword [edi]
call fcn.004ba1ee
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]
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.004944b0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004babe3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret