Function at 0x462280
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 [0x5a3054]
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 0x4622e1
jb 0x4622d6
cmp edi, 0xffffffff
ja 0x4622e1
cmp dword [ebx + 0x14], 0
ja 0x4622e1
cmp esi, 0xffffffff
jbe 0x4622e9
call fcn.00460720
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 0x46249a
cmp esi, 0xffffff1f
ja 0x46249a
cmp edi, eax
jb 0x46249a
cmp esi, dword [ebp - 0x50]
jb 0x46249a
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.004624b0
mov ecx, edi
add esp, 0x10
and ecx, 0xf
je 0x462386
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.00479b70
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x44]
call fcn.004624b0
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.004624b0
mov ecx, esi
add esp, 0x10
and ecx, 0xf
je 0x4623d3
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.00479b70
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x44]
call fcn.004624b0
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 0x462424
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.004624b0
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.00463340
mov esi, eax
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00463280
add esp, 0x20
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045fc86
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.0045fc86
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret