Function at 0x4dd850
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
jmp 0x4dd868
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4dd887
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + str.cw]
mov al, byte [ebp - 4]
mov byte [edx + 0x7d5154], al
jmp 0x4dd85f
mov dword [ebp - 4], 0
jmp 0x4dd899
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x4ddaa3
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + str.cw]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
mov edx, dword [ebp - 8]
and edx, 0x80
neg edx
sbb edx, edx
and edx, 0x1b
xor ecx, edx
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
shl ecx, 8
mov edx, dword [ebp - 0xc]
or edx, ecx
mov eax, dword [ebp - 8]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0x10]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d4154], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov edx, dword [ebp - 0x10]
or edx, ecx
mov eax, dword [ebp - 8]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 8]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d4554], edx
mov ecx, dword [ebp - 0x10]
shl ecx, 8
mov edx, dword [ebp - 8]
or edx, ecx
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 8]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d4954], edx
mov ecx, dword [ebp - 8]
shl ecx, 8
mov edx, dword [ebp - 8]
or edx, ecx
mov eax, dword [ebp - 0x10]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0xc]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d4d54], edx
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x7d5154]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov ecx, dword [ebp - 0x1c]
and ecx, 0x80
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor eax, ecx
and eax, 0xff
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
shl edx, 1
mov eax, dword [ebp - 0x24]
and eax, 0x80
neg eax
sbb eax, eax
and eax, 0x1b
xor edx, eax
and edx, 0xff
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
shl ecx, 1
mov edx, dword [ebp - 0x2c]
and edx, 0x80
neg edx
sbb edx, edx
and edx, 0x1b
xor ecx, edx
and ecx, 0xff
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 8
mov edx, dword [ebp - 0x30]
or edx, ecx
mov eax, dword [ebp - 0x28]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0x20]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d3154], edx
mov ecx, dword [ebp - 0x30]
shl ecx, 8
mov edx, dword [ebp - 0x20]
or edx, ecx
mov eax, dword [ebp - 0x18]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0x28]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d3554], edx
mov ecx, dword [ebp - 0x20]
shl ecx, 8
mov edx, dword [ebp - 0x28]
or edx, ecx
mov eax, dword [ebp - 0x30]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0x18]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d3954], edx
mov ecx, dword [ebp - 0x28]
shl ecx, 8
mov edx, dword [ebp - 0x18]
or edx, ecx
mov eax, dword [ebp - 0x20]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 0x30]
shl ecx, 0x18
or edx, ecx
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x7d3d54], edx
jmp 0x4dd890
mov dword [ebp - 0x3c], fcn.004de2f8
mov dword [ebp - 0x40], fcn.004dddd7
mov dword [ebp - 0x38], fcn.004de81a
mov dword [ebp - 0x34], 0
call fcn.0052f233
test eax, eax
je 0x4ddb04
mov dword [ebp - 0x3c], fcn.0052f0a1
mov dword [ebp - 0x40], 0x52f080
mov dword [ebp - 0x38], fcn.0052f0c2
mov dword [ebp - 0x34], 4
call fcn.0052f399
test eax, eax
je 0x4ddb04
mov dword [ebp - 0x3c], 0x52f0e3
mov dword [ebp - 0x38], 0x52f104
mov ecx, dword [ebp - 0x34]
or ecx, 8
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x3c]
mov dword [0x7e736c], edx
mov eax, dword [ebp - 0x40]
mov dword [0x7e7360], eax
mov ecx, dword [ebp - 0x38]
mov dword [0x7e7368], ecx
mov edx, dword [ebp - 0x34]
mov dword [0x7e7364], edx
mov esp, ebp
pop ebp
ret