Function at 0x491e00
Capabilities:
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4b9510]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4be448], 0
je 0x491e21
jmp 0x4921a7
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x491e46
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x491ea8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x410]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x414]
mov dword [ebp + eax*4 - 0x818], ecx
mov edx, dword [ebp - 0x410]
shl edx, 1
mov eax, dword [ebp - 0x410]
and eax, 0x80
neg eax
sbb eax, eax
and eax, 0x1b
xor edx, eax
xor edx, dword [ebp - 0x410]
and edx, 0xff
mov dword [ebp - 0x410], edx
jmp 0x491e37
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x491ecd
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 0xa
jge 0x491f14
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x410]
mov dword [edx*4 + 0x4bd420], eax
mov ecx, dword [ebp - 0x410]
shl ecx, 1
mov edx, dword [ebp - 0x410]
and edx, 0x80
neg edx
sbb edx, edx
and edx, 0x1b
xor ecx, edx
and ecx, 0xff
mov dword [ebp - 0x410], ecx
jmp 0x491ebe
mov byte [0x4bd320], 0x63
mov dword [ebp - 0x414], 1
jmp 0x491f36
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x49205b
mov ecx, dword [ebp - 0x414]
mov edx, 0xff
sub edx, dword [ebp + ecx*4 - 0x818]
mov eax, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x410]
xor edx, 0x63
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x414]
mov cl, byte [ebp - 0x410]
mov byte [eax + 0x4bd320], cl
jmp 0x491f27
mov dword [ebp - 0x414], 0
jmp 0x492076
mov edx, dword [ebp - 0x414]
add edx, 1
mov dword [ebp - 0x414], edx
cmp dword [ebp - 0x414], 0x100
jge 0x49219d
mov eax, dword [ebp - 0x414]
movzx ecx, byte [eax + 0x4bd320]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x410]
shl edx, 1
mov eax, dword [ebp - 0x410]
and eax, 0x80
neg eax
sbb eax, eax
and eax, 0x1b
xor edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x40c]
xor ecx, dword [ebp - 0x410]
and ecx, 0xff
mov dword [ebp - 0x81c], ecx
mov edx, dword [ebp - 0x410]
shl edx, 8
xor edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x410]
shl eax, 0x10
xor edx, eax
mov ecx, dword [ebp - 0x81c]
shl ecx, 0x18
xor edx, ecx
mov eax, dword [ebp - 0x414]
mov dword [eax*4 + 0x4be048], edx
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x4be048]
shl edx, 8
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax*4 + 0x4be048]
shr ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 0x414]
mov dword [eax*4 + 0x4bdc48], edx
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x4bdc48]
shl edx, 8
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax*4 + 0x4bdc48]
shr ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 0x414]
mov dword [eax*4 + 0x4bd848], edx
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x4bd848]
shl edx, 8
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax*4 + 0x4bd848]
shr ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 0x414]
mov dword [eax*4 + 0x4bd448], edx
jmp 0x492067
mov dword [0x4be448], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004931fa
mov esp, ebp
pop ebp
ret