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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x64
mov eax, dword [0x4902b4]
xor eax, esp
mov dword [esp + 0x60], eax
mov dword [esp + 0x14], ecx
mov eax, edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [esp + 0x1c], ecx
mov edi, edx
mov ecx, edx
shr edi, 4
and ecx, 0xf
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ecx
cmp eax, 1
je 0x409407
test eax, eax
je 0x409407
mov eax, 0xffffffdf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00444b60
mov esp, ebp
pop ebp
ret
cmp edx, 0x10
jae 0x409423
mov eax, 0xffffffde
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00444b60
mov esp, ebp
pop ebp
ret
cmp edx, 0x1000000
ja 0x40940c
mov ecx, dword [esp + 0x20]
add ecx, 0x118
call fcn.004090e0
cmp dword [0x49411c], 0
jne 0x40947e
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [0x494108], eax
mov eax, ecx
mov dword [0x49410c], esi
mov esi, dword [esp + 0x18]
mov dword [0x494110], ecx
mov dword [0x494114], edx
mov dword [0x494118], eax
mov dword [0x49411c], 1
jmp 0x409483
mov eax, dword [0x494118]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
test eax, 0x2000000
je 0x4094d9
mov eax, dword [ecx + 0x11c]
add ecx, 0x118
movups xmm0, xmmword [edx]
lea eax, [ecx + eax*4]
movaps xmm1, xmmword [eax + 8]
add eax, 0x18
mov ecx, dword [ecx]
pxor xmm1, xmm0
sub ecx, 1
je 0x4094cd
nop word [eax + eax]
aesenc xmm1, xmmword [eax]
add eax, 0x10
sub ecx, 1
jne 0x4094c0
aesenclast xmm1, xmmword [eax]
movaps xmmword [esp + 0x30], xmm1
jmp 0x4094f4
lea eax, [esp + 0x30]
push eax
lea ecx, [ecx + 0x118]
call fcn.00408700
add esp, 4
test eax, eax
jne 0x4096d8
test edi, edi
je 0x40961b
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
dec edi
cmp dword [esp + 0x24], 0
mov dword [esp + 0x2c], edi
je 0x409552
cmp dword [esp + 0x28], 0
jne 0x409552
test edi, edi
jne 0x409552
movaps xmm0, xmmword [esp + 0x30]
lea edx, [esp + 0x30]
mov ecx, edx
movaps xmmword [esp + 0x50], xmm0
call fcn.00409330
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
jmp 0x409556
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov edx, eax
push 0x10
push ecx
lea ecx, [esp + 0x48]
call fcn.00401aa0
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x28]
push eax
push eax
call fcn.00409180
add esp, 0x10
test eax, eax
jne 0x4096d8
lea eax, [esp + 0x30]
mov ecx, esi
push 0x10
push eax
lea edx, [esp + 0x48]
call fcn.00401aa0
mov eax, edi
mov ecx, 8
shr eax, 0x1c
add esp, 8
and eax, 8
sub ecx, eax
mov eax, 0x87
sar eax, cl
mov ecx, dword [esp + 0x30]
cdq
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
shld edx, ecx, 1
add ecx, ecx
xor edi, edx
mov edx, dword [esp + 0x10]
xor esi, ecx
mov ecx, dword [esp + 0x14]
shld ecx, eax, 1
shr edx, 0x1f
add eax, eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x18]
or eax, edx
mov dword [esp + 0x38], eax
mov edx, edi
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x409510
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4096d6
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x30]
test edi, edi
mov dword [esp + 0x24], 0
lea eax, [esp + 0x50]
cmovne eax, edx
lea edx, [esi - 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x409676
mov edi, edx
mov dword [esp + 0x24], ecx
sub edi, esi
mov edx, ecx
nop dword [eax]
mov al, byte [edi + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub edx, 1
jne 0x409660
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00401aa0
mov ecx, dword [esp + 0x2c]
mov eax, 0x10
mov esi, dword [esp + 0x20]
sub eax, ecx
mov edx, dword [esp + 0x18]
push eax
lea eax, [ecx + esi]
push eax
lea eax, [esp + 0x50]
lea edx, [ecx + edx]
add ecx, eax
call fcn.00401aa0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
push eax
mov edx, edi
call fcn.00409180
add esp, 0x18
test eax, eax
jne 0x4096d8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
push 0x10
push esi
call fcn.00401aa0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444b60
mov esp, ebp
pop ebp
ret