Function at 0x596410
Capabilities:
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x6fb05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x596448
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x5964aa
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 0x596439
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x5964cf
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 0xa
jge 0x596516
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x410]
mov dword [edx*4 + 0x739910], 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 0x5964c0
mov byte [0x739010], 0x63
mov byte [0x73b19b], 0
mov dword [ebp - 0x414], 1
jmp 0x59653f
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x59666a
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 - 0x410], eax
mov ecx, dword [ebp - 0x410]
mov dword [ebp - 0x40c], 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 - 0x40c]
xor ecx, 0x63
xor ecx, dword [ebp - 0x410]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x414]
mov al, byte [ebp - 0x410]
mov byte [edx + 0x739010], al
mov ecx, dword [ebp - 0x410]
mov dl, byte [ebp - 0x414]
mov byte [ecx + 0x73b138], dl
jmp 0x596530
mov dword [ebp - 0x414], 0
jmp 0x596685
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x596996
mov ecx, dword [ebp - 0x414]
movzx edx, byte [ecx + 0x739010]
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x410]
shl eax, 1
mov ecx, dword [ebp - 0x410]
and ecx, 0x80
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor eax, ecx
and eax, 0xff
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x40c]
xor edx, dword [ebp - 0x410]
and edx, 0xff
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x410]
shl eax, 8
xor eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x81c]
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x73ad38], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x73ad38]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x73ad38]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x73a938], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x73a938]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x73a938]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x73a538], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x73a538]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x73a538]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x73a138], eax
mov edx, dword [ebp - 0x414]
movzx eax, byte [edx + 0x73b138]
mov dword [ebp - 0x410], eax
mov ecx, 0xe
test ecx, ecx
je 0x5967f6
cmp dword [ebp - 0x410], 0
je 0x5967f6
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7e0]
add eax, dword [ebp + edx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x820], edx
jmp 0x596800
mov dword [ebp - 0x820], 0
mov eax, 9
test eax, eax
je 0x59683c
cmp dword [ebp - 0x410], 0
je 0x59683c
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7f4]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x824], edx
jmp 0x596846
mov dword [ebp - 0x824], 0
mov eax, 0xd
test eax, eax
je 0x596882
cmp dword [ebp - 0x410], 0
je 0x596882
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7e4]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x828], edx
jmp 0x59688c
mov dword [ebp - 0x828], 0
mov eax, 0xb
test eax, eax
je 0x5968c8
cmp dword [ebp - 0x410], 0
je 0x5968c8
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7ec]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x82c], edx
jmp 0x5968d2
mov dword [ebp - 0x82c], 0
mov eax, dword [ebp - 0x824]
shl eax, 8
xor eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x828]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x82c]
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x739d38], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x739d38]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x739d38]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x739938], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x739938]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x739938]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x739510], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x739510]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x739510]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x739110], eax
jmp 0x596676
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059eb13
mov esp, ebp
pop ebp
ret