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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov dword [ebp - 0xc], ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.0040f7a0
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 0x1c], eax
push 0x120c
mov ecx, dword [ebp - 0x1c]
call fcn.00414810
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 0x20], eax
push 0
mov ecx, dword [ebp - 0x20]
call fcn.005206bd
mov eax, dword [ebp + 0xc]
shr eax, 2
add eax, 6
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.005206d1
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
call fcn.0052072d
mov dword [ebp - 4], eax
call fcn.0051d970
movzx eax, al
test eax, eax
je 0x51dec5
call fcn.0051d950
movzx eax, al
test eax, eax
je 0x51dec5
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053c0f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call dword [eax + 0x20]
movzx eax, al
test eax, eax
jne 0x51dec0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
call fcn.0052072d
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0053c410
pop ecx
pop ecx
jmp 0x51e9b3
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
shr eax, 2
push eax
push dword [ebp - 4]
push 1
call fcn.00520752
add esp, 0x14
mov dword [ebp - 0x18], 0x579348
xor eax, eax
inc eax
je 0x51e164
mov eax, dword [ebp + 0xc]
shr eax, 2
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x579370]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
shl ecx, 8
xor eax, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, ecx
mov dword [ebp - 0x30], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
xor eax, dword [ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
shr eax, 2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [ecx + eax*4], edx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 8], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx*4 + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, dword [ebp + 0xc]
shr eax, 2
mov ecx, dword [ebp - 4]
lea esi, [ecx + eax*4 + 0x10]
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
call fcn.00520715
cmp esi, eax
jne 0x51e011
jmp 0x51e164
cmp dword [ebp + 0xc], 0x18
jne 0x51e064
push 4
pop eax
shl eax, 2
push 4
pop ecx
imul ecx, ecx, 9
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 5
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xb
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
jmp 0x51e150
cmp dword [ebp + 0xc], 0x20
jne 0x51e150
push 4
pop eax
imul eax, eax, 0xb
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x10], eax
push 4
pop eax
shl eax, 2
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
shl ecx, 0x18
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x579370]
shl eax, 0x10
xor ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x579370]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, 0
movzx eax, al
movzx eax, byte [eax + 0x579370]
xor ecx, eax
push 4
pop eax
imul eax, eax, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
push 4
pop eax
imul eax, eax, 5
push 4
pop ecx
imul ecx, ecx, 0xc
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 6
push 4
pop ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 7
push 4
pop ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xf
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp + 0xc]
shr eax, 2
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
jmp 0x51dee6
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
call fcn.0052072d
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call dword [eax + 0x20]
movzx eax, al
test eax, eax
je 0x51e1db
movzx eax, byte [0x5915f2]
test eax, eax
jne 0x51e198
call fcn.0051da80
push 0x10
push dword [ebp - 4]
push dword [ebp - 4]
push 1
call fcn.005207b3
add esp, 0x10
push 0x10
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4]
push eax
push 1
call fcn.005207b3
add esp, 0x10
jmp 0x51e984
movzx eax, byte [0x5915f3]
test eax, eax
jne 0x51e1eb
call fcn.0051db5b
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 - 4]
mov dword [ebp - 0x14], eax
jmp 0x51e216
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x51e645
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 8]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 8]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0xc]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0xc]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x51e204
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 4]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 4]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 8]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 8]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0xc]
shr eax, 0x18
movzx eax, al
movzx eax, byte [eax + 0x579370]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
mov eax, dword [eax*8 + 0x5916c4]
xor eax, dword [ecx*8 + 0x5916c1]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0xc]
shr ecx, 0
movzx ecx, cl
movzx ecx, byte [ecx + 0x579370]
xor eax, dword [ecx*8 + 0x5916c3]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 0xc], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
push dword [ecx + eax]
push 1
call fcn.005125c0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4]
push 1
call fcn.005125c0
pop ecx
pop ecx
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 4]
push dword [ecx + eax]
push 1
call fcn.005125c0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4 + 4]
push 1
call fcn.005125c0
pop ecx
pop ecx
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 4]
push dword [ecx + eax]
push 1
call fcn.005125c0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4 + 8]
push 1
call fcn.005125c0
pop ecx
pop ecx
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 8], edx
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 4]
push dword [ecx + eax]
push 1
call fcn.005125c0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4 + 0xc]
push 1
call fcn.005125c0
pop ecx
pop ecx
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shl eax, 2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 0xc], edx
call fcn.0051d970
movzx eax, al
test eax, eax
je 0x51e9b3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
dec eax
shl eax, 4
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 1
call fcn.005207b3
add esp, 0x10
pop esi
leave
ret 0xc