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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
mov eax, edx
sub eax, edi
cmp eax, 0x717
jl 0x4a1e4d
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
nop dword [eax]
test esi, esi
jle 0x4a1f06
push ecx
push edx
mov edx, edi
lea ecx, [esp + 0x40]
call fcn.004a2560
mov edx, dword [esp + 0x20]
mov eax, esi
sar eax, 2
add esp, 8
sar esi, 1
add esi, eax
mov eax, edx
sub eax, dword [esp + 0x3c]
imul ecx, eax, 0x586fb587
mov eax, dword [esp + 0x38]
sub eax, edi
imul eax, eax, 0x586fb587
cmp eax, ecx
mov eax, dword [ebp + 0xc]
push eax
push esi
jge 0x4a1e2b
mov edx, dword [esp + 0x40]
mov ecx, edi
call fcn.004a1da0
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
jmp 0x4a1e3c
mov ecx, dword [esp + 0x44]
call fcn.004a1da0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], edx
mov ecx, dword [ebp + 0xc]
mov eax, edx
sub eax, edi
add esp, 8
cmp eax, 0x717
jge 0x4a1dd0
cmp edi, edx
je 0x4a20bc
lea edx, [edi + 0x37]
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x18]
je 0x4a20bc
movups xmm1, xmmword [edx + 0x10]
mov eax, dword [edx + 0x30]
mov esi, edx
movups xmm2, xmmword [edx]
mov dword [esp + 0x20], eax
mov ax, word [edx + 0x34]
movups xmm3, xmmword [edx + 0x20]
mov word [esp + 0x1c], ax
mov al, byte [edx + 0x36]
movd ecx, xmm1
movaps xmmword [esp + 0x80], xmm2
movaps xmmword [esp + 0x90], xmm1
movaps xmmword [esp + 0xa0], xmm3
mov byte [esp + 0x12], al
mov dword [esp + 0x38], ecx
cmp cl, byte [edi + 0x10]
jae 0x4a2045
lea esi, [edx + 0x37]
mov ecx, edi
push esi
call fcn.0045d070
movaps xmm0, xmmword [esp + 0x84]
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, esi
movups xmmword [edi], xmm0
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [esp + 0x90]
movups xmmword [edi + 0x10], xmm0
movaps xmm0, xmmword [esp + 0xa0]
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], eax
mov ax, word [esp + 0x1c]
mov word [edi + 0x34], ax
mov al, byte [esp + 0x12]
mov byte [edi + 0x36], al
jmp 0x4a20b2
mov esi, edx
sub esi, edi
imul eax, esi, 0x586fb587
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
sar eax, 1
test eax, eax
jle 0x4a1f88
imul esi, eax, 0x37
add esi, edi
movups xmm0, xmmword [esi - 0x37]
dec eax
lea esi, [esi - 0x37]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ax, word [esi + 0x34]
movups xmmword [esp + 0x40], xmm0
mov word [esp + 0x74], ax
movups xmm0, xmmword [esi + 0x10]
mov al, byte [esi + 0x36]
push ecx
mov byte [esp + 0x7a], al
mov ecx, edi
lea eax, [esp + 0x44]
movups xmmword [esp + 0x54], xmm0
push eax
movups xmm0, xmmword [esi + 0x20]
push dword [esp + 0x24]
movups xmmword [esp + 0x6c], xmm0
call fcn.004a2db0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x4a1f23
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 2
jl 0x4a20bc
lea ecx, [edx - 0x37]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
imul eax, esi, 0x586fb587
mov esi, ecx
sub esi, edi
cmp eax, 2
jl 0x4a202f
movups xmm0, xmmword [ecx]
mov eax, dword [ecx + 0x30]
xor edx, edx
push dword [ebp + 0xc]
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x74], eax
movups xmm0, xmmword [ecx + 0x10]
movzx eax, word [ecx + 0x34]
mov word [esp + 0x78], ax
movzx eax, byte [ecx + 0x36]
movups xmmword [esp + 0x54], xmm0
mov byte [esp + 0x7a], al
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [esp + 0x64], xmm0
movups xmm0, xmmword [edi]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [edi + 0x30]
mov dword [ecx + 0x30], eax
movzx eax, word [edi + 0x34]
mov word [ecx + 0x34], ax
movzx eax, byte [edi + 0x36]
mov byte [ecx + 0x36], al
lea eax, [esp + 0x44]
push eax
imul eax, esi, 0x586fb587
mov ecx, edi
push eax
call fcn.004a2db0
mov ecx, dword [esp + 0x20]
add esp, 0xc
sub ecx, 0x37
mov dword [esp + 0x14], ecx
cmp esi, 0x6e
jge 0x4a1fa0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x37]
cmp cl, byte [edx - 0x27]
jae 0x4a2089
mov edx, dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + 0x20], xmm0
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x30], ecx
mov cx, word [eax + 0x34]
mov word [esi + 0x34], cx
mov cl, byte [eax + 0x36]
mov byte [esi + 0x36], cl
mov esi, eax
sub eax, 0x37
cmp dl, byte [eax + 0x10]
jb 0x4a2051
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add edx, 0x37
movups xmmword [esi], xmm2
mov dword [esp + 0x14], edx
movups xmmword [esi + 0x10], xmm1
movups xmmword [esi + 0x20], xmm3
mov dword [esi + 0x30], eax
mov ax, word [esp + 0x1c]
mov word [esi + 0x34], ax
mov al, byte [esp + 0x12]
mov byte [esi + 0x36], al
cmp edx, dword [esp + 0x18]
jne 0x4a1e66
pop edi
pop esi
mov esp, ebp
pop ebp
ret