Function at 0x470080
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 edi, ecx
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ecx
mov eax, edx
sub eax, ecx
sar eax, 4
imul eax, eax, 0xcccccccd
mov bl, 1
cmp eax, 5
ja case.default.0x4700b4
jmp dword [eax*4 + 0x57ebdc]
lea eax, [edx - 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x28]
cmp eax, dword [edx - 0x28]
mov eax, dword [edi + 0x2c]
sbb eax, dword [edx - 0x24]
jge case.0x4700b4.0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0046ff10
add esp, 8
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [edi + 0xa0]
mov dword [esp + 4], edx
lea edx, [edi + 0x50]
mov ecx, edi
push esi
call fcn.005224a0
mov ecx, dword [esp + 8]
add esp, 4
lea edx, [edi + 0xf0]
cmp edx, ecx
je case.0x4700b4.0
mov dword [esp + 0xc], 0xa0
mov dword [esp + 8], 0
mov eax, dword [esi + 0x28]
cmp eax, dword [edx + 0x28]
mov eax, dword [esi + 0x2c]
sbb eax, dword [edx + 0x2c]
jge 0x4702df
lea eax, [edx + 0x28]
mov dword [esp], eax
lea esi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
movups xmm0, xmmword [edx]
movaps xmmword [esp + 0x20], xmm0
lea eax, [edx + 0x10]
mov ecx, esi
push eax
mov ebx, edx
call fcn.00494350
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x14], eax
movsd xmm0, qword [ebx + 0x1c]
movsd qword [esi + 0xc], xmm0
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [ebx + 0x24], eax
mov eax, dword [esp]
movsd xmm0, qword [eax + 0x20]
movsd qword [esi + 0x38], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esi + 0x28], xmm1
movups xmmword [esi + 0x18], xmm0
mov eax, dword [esp + 0xc]
mov ebx, eax
lea esi, [edi + eax]
add esi, 0x60
movups xmm0, xmmword [esi - 0x60]
movups xmmword [esi - 0x10], xmm0
lea eax, [edi + eax + 0x10]
mov dword [esp], eax
mov ecx, esi
push eax
call fcn.0043d6e0
mov eax, dword [esp]
cmp byte [eax + 0x67], 0
jns 0x4701e7
push dword [esi + 0xc]
call fcn.004ba1ee
add esp, 4
mov eax, dword [edi + ebx + 0x24]
mov dword [esi + 0x14], eax
movsd xmm0, qword [edi + ebx + 0x1c]
movsd qword [esi + 0xc], xmm0
xor eax, eax
mov byte [edi + ebx + 0x27], al
mov byte [edi + ebx + 0x1c], al
movups xmm0, xmmword [edi + ebx + 0x28]
movups xmm1, xmmword [edi + ebx + 0x38]
movups xmmword [edi + ebx + 0x78], xmm0
movups xmmword [edi + ebx + 0x88], xmm1
movsd xmm0, qword [edi + ebx + 0x48]
movsd qword [edi + ebx + 0x98], xmm0
test ebx, ebx
je 0x47024d
mov eax, dword [edi + ebx - 0x28]
mov ecx, dword [edi + ebx - 0x24]
cmp eax, dword [esp + 0x48]
lea eax, [ebx - 0x50]
sbb ecx, dword [esp + 0x4c]
jl 0x4701b4
add eax, edi
add eax, 0x50
jmp 0x47024f
mov eax, edi
lea esi, [esp + 0x30]
mov dword [esp + 0x10], eax
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
mov ecx, dword [esp]
push esi
call fcn.0043d6e0
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x27], 0
lea ecx, [edi + ebx + 0x1c]
jns 0x470288
push dword [ecx]
mov dword [esp + 4], ecx
call fcn.004ba1ee
mov ecx, dword [esp + 4]
add esp, 4
mov eax, dword [esi + 0x14]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 0xc]
movsd qword [ecx], xmm0
lea eax, [edi + ebx]
add eax, 0x28
xor ecx, ecx
mov byte [esp + 0x47], cl
mov byte [esp + 0x3c], cl
movsd xmm0, qword [esi + 0x38]
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 ebx, dword [esp + 8]
inc ebx
mov ecx, esi
call fcn.004944b0
mov dword [esp + 8], ebx
cmp ebx, 8
mov bl, 1
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
je 0x470358
mov esi, edx
lea eax, [edx + 0x50]
add dword [esp + 0xc], 0x50
mov edx, eax
cmp eax, ecx
jne 0x47012d
jmp case.0x4700b4.0
add edx, 0xffffffb0
lea eax, [edi + 0xa0]
mov esi, edx
lea edx, [edi + 0x50]
mov ecx, edi
push esi
push eax
call fcn.00522570
jmp 0x4700df
add edx, 0xffffffb0
mov eax, edx
lea edx, [edi + 0x50]
mov ecx, edi
push eax
call fcn.005224a0
add esp, 4
jmp case.0x4700b4.0
add edx, 0xffffffb0
lea eax, [edi + 0xf0]
mov dword [esp], eax
lea esi, [edi + 0xa0]
mov eax, edx
lea edx, [edi + 0x50]
mov ecx, edi
push eax
push dword [esp + 4]
push esi
call fcn.005223b0
add esp, 0xc
jmp case.0x4700b4.0
add edx, 0x50
cmp edx, ecx
sete bl
jmp case.0x4700b4.0