Function at 0x4628a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5a2054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x24], 0
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x28]
push edi
mov edi, dword [ebx + 0x20]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], ecx
ja 0x462901
jb 0x4628f6
cmp edi, 0xffffffff
ja 0x462901
cmp dword [ebx + 0x14], 0
ja 0x462901
cmp esi, 0xffffffff
jbe 0x462909
call fcn.00460d40
mov edx, dword [ebp - 0x48]
lea ecx, [esi + 0xf]
shr ecx, 4
lea eax, [edi + 0xf]
shr eax, 4
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x44]
cmp edi, 0xffffff1f
ja 0x462aba
cmp esi, 0xffffff1f
ja 0x462aba
cmp edi, eax
jb 0x462aba
cmp esi, dword [ebp - 0x50]
jb 0x462aba
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, edi
and eax, 0xfffffff0
movq qword [ebp - 0x30], xmm0
push eax
push edx
lea eax, [ebp - 0x70]
push eax
push ecx
call fcn.00462ad0
mov ecx, edi
add esp, 0x10
and ecx, 0xf
je 0x4629a6
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
sub eax, ecx
movaps xmmword [ebp - 0x20], xmm0
push ecx
add eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047a190
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x44]
call fcn.00462ad0
add esp, 0x1c
mov eax, esi
and eax, 0xfffffff0
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x44]
call fcn.00462ad0
mov ecx, esi
add esp, 0x10
and ecx, 0xf
je 0x4629f3
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
sub eax, ecx
movaps xmmword [ebp - 0x20], xmm0
push ecx
add eax, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047a190
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x44]
call fcn.00462ad0
add esp, 0x1c
lea ecx, [esi*8]
mov dword [ebp - 0x24], 0x1000000
xor esi, esi
movd xmm3, ecx
xor edx, edx
lea eax, [edi*8]
movd xmm0, eax
mov ecx, 0xd
punpckldq xmm3, xmm0
movaps xmm0, xmmword [ebp - 0x30]
movd xmm2, edx
mov edx, dword [ebp - 0x44]
movd xmm1, esi
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
pshufb xmm3, xmmword [0x57a940]
lea eax, [edx + 0x10]
pxor xmm0, xmmword [edx]
lea eax, [eax + 0x10]
aesenc xmm0, xmmword [eax - 0x10]
sub ecx, 1
jne 0x462a44
aesenclast xmm0, xmmword [edx + 0xe0]
push 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
push edx
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm3
call fcn.00462ad0
movaps xmm1, xmmword [ebp - 0x70]
lea eax, [ebp - 0x40]
pshufb xmm1, xmmword [0x57a940]
push eax
push dword [ebp - 0x54]
pxor xmm1, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm1
call fcn.00463960
mov esi, eax
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.004638a0
add esp, 0x20
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004602a6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004602a6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret