Function at 0x53299c
Capabilities:
Authenticate hmac
Encrypt data using speck

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x17c
mov ebx, dword [esp + 0x190]
mov ebx, dword [ebx + 0x110]
mov dword [esp + 0xb8], ebx
add ebx, 4
mov dword [esp + 0xd0], ebx
mov ebx, dword [esp + 0x194]
mov ebx, dword [ebx + 0x48]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x194]
mov eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x44]
lea edx, [eax + 0xa]
xor ecx, ecx
mov eax, dword [esp + 0xb8]
call fcn.00531ac8
sub eax, 4
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x40]
mov ebx, dword [esp + 0xb0]
lea eax, [ebx + eax*4 + 4]
mov dword [esp + 0xb4], eax
add eax, 0x24
mov dword [esp + 0x8c], eax
mov ebx, dword [esp + 0x190]
mov eax, dword [ebx + 0x110]
mov eax, dword [eax]
mov dword [esp + 0x9c], eax
mov ebx, dword [esp + 0x194]
mov eax, dword [ebx + 0x14]
and eax, 1
cmp eax, 1
sbb eax, eax
add eax, 3
mov ebp, dword [esp + 0xb4]
mov dword [ebp], eax
mov ebx, dword [esp + 0x190]
mov eax, dword [ebx + 0x284]
test eax, eax
je 0x538087
mov edx, dword [eax + 4]
inc edx
mov ebp, dword [esp + 0xb4]
mov dword [ebp + 4], edx
mov ebx, dword [esp + 0x190]
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
mov ebx, dword [esp + 0x194]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov ebx, dword [esp + 0x190]
mov eax, dword [ebx + 0x64]
mov ebp, dword [eax]
mov dword [esp + 0xd4], ebp
mov eax, dword [eax + 0x28]
mov dword [esp + 0xa4], eax
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
xor ebp, ebp
mov dword [esp + 0x88], 0
nop
mov eax, dword [esp + 0x88]
and eax, 0x3f
inc dword [esp + 0x88]
test eax, eax
jne 0x532bb8
mov ebx, dword [esp + 0x190]
mov eax, dword [ebx + 0x320]
mov eax, dword [eax]
test eax, eax
jne 0x5334ac
mov ebx, dword [esp + 0x190]
mov ecx, dword [ebx + 0x210]
test ecx, ecx
je 0x532bb8
mov esi, dword [ebx + 0x214]
mov ebx, esi
inc ebx
mov edi, dword [esp + 0x190]
mov dword [edi + 0x214], ebx
test cl, 1
je 0x533078
mov esi, dword [edi + 0x224]
cmp esi, 1
je 0x532b84
mov eax, ebx
cdq
idiv esi
test edx, edx
jne 0x533078
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x9c]
mov dword [ebx + 0x10], esi
mov ebx, dword [esp + 0x190]
mov dword [esp], ebx
call fcn.005016b0
dec eax
je 0x533520
mov dword [esp + 0x98], 1
nop
mov ebx, dword [esp + 0x7c]
movzx eax, byte [ebx]
cmp al, 0xa
je case.0x532e3b.10
cmp al, 1
je case.0x532e3b.1
cmp al, 0x83
jbe 0x532e38
mov dword [esp + 4], eax
mov dword [esp], str.TclExecuteByteCode:_unrecognized_opCode__u
call fcn.00508cd0
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x9c]
mov dword [ebx + 0x10], esi
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.divide_by_zero
call fcn.004eb494
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x190]
mov dword [esp], ebx
call fcn.004e1100
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.divide_by_zero
mov dword [esp + 8], str.DIVZERO
mov dword [esp + 4], str.ARITH
mov dword [esp], ebx
call fcn.004e1940
mov dword [esp + 0x98], 1
nop
mov ebx, dword [esp + 0x190]
mov eax, dword [ebx + 0x100]
test al, 4
je 0x533624
mov dword [esp + 0x90], 1
and eax, 0xfffffffb
mov ebx, dword [esp + 0x190]
mov dword [ebx + 0x100], eax
test ebp, ebp
je 0x532ce0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x84]
jmp 0x532c9e
mov ebp, ebx
test ebx, ebx
je 0x532ce0
cmp edi, esi
je 0x532cad
mov eax, dword [edi]
cmp dword [ebp + 0x10], eax
jl 0x53ad54
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jg 0x532c98
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x532d80
mov eax, dword [eax + 4]
test eax, eax
je 0x532d80
mov dword [esp], ebp
call fcn.004dd854
mov ebp, ebx
test ebx, ebx
jne 0x532c9e
nop
mov ebx, dword [esp + 0x190]
xor ebp, ebp
mov eax, dword [ebx + 0x218]
test eax, eax
jne 0x5336d4
mov ebx, dword [esp + 0xb0]
cmp dword [esp + 0x84], ebx
je 0x5336d4
mov ecx, dword [esp + 0x194]
mov edx, 1
mov eax, dword [esp + 0x7c]
call fcn.005319f0
mov esi, eax
test eax, eax
je 0x5336d4
mov ebx, dword [esp + 0x80]
lea esi, [esi]
mov eax, ebx
sub eax, dword [esp + 0x8c]
sar eax, 2
mov edi, dword [esp + 0x84]
cmp eax, dword [edi]
jle 0x533058
mov edi, dword [ebx]
sub ebx, 4
mov eax, dword [edi]
dec eax
mov dword [edi], eax
test eax, eax
jg 0x532d34
mov eax, dword [edi + 0xc]
test eax, eax
je 0x532e0c
mov eax, dword [eax + 4]
test eax, eax
je 0x532e0c
mov dword [esp], edi
call fcn.004dd854
jmp 0x532d34
mov eax, dword [ebp + 4]
test eax, eax
je 0x532d97
cmp eax, dword [0x5ef7cc]
je 0x532d97
mov dword [esp], eax
call fcn.004ee144
mov dword [ebp + 8], 0xffffffff
mov dword [esp], ebp
call fcn.0050d50c
jmp 0x532c98
mov ebx, dword [esp + 0x7c]
movzx edx, byte [ebx + 1]
movzx eax, dl
mov ebx, dword [esp + 0xa4]
lea esi, [ebx + eax*8]
mov eax, dword [esi]
test al, 2
je 0x532dd1
nop
mov esi, dword [esi + 4]
mov eax, dword [esi]
test al, 2
jne 0x532dc8
test al, 0x13
jne 0x5330ac
mov eax, dword [esi + 4]
test eax, eax
je 0x5330ac
mov dword [esp + 0xf0], eax
mov ebx, dword [esp + 0x80]
mov dword [ebx + 4], eax
inc dword [eax]
add dword [esp + 0x7c], 2
add ebx, 4
mov dword [esp + 0x80], ebx
jmp 0x532b0c
mov eax, dword [edi + 4]
test eax, eax
je 0x532e23
cmp eax, dword [0x5ef7cc]
je 0x532e23
mov dword [esp], eax
call fcn.004ee144
mov dword [edi + 8], 0xffffffff
mov dword [esp], edi
call fcn.0050d50c
jmp 0x532d34
movzx edx, al
jmp dword [edx*4 + 0x628780]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x194]
nop
add ecx, 4
movzx ebx, byte [eax + 1]
mov edx, dword [esi + 0x4c]
mov edx, dword [edx + ebx*4]
mov dword [ecx], edx
inc dword [edx]
add eax, 2
cmp byte [eax], 1
je 0x532e58
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
jmp 0x532b0c
mov ebx, dword [esp + 0x7c]
movzx eax, byte [ebx + 2]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 0x18
or eax, edx
movzx edx, byte [ebx + 3]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 4]
or eax, edx
mov ebx, dword [esp + 0x194]
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + eax*8 + 4]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0xa4]
lea esi, [ebx + eax*8]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x539f75
mov eax, dword [ebx + 4]
test eax, eax
je 0x532ee8
cmp eax, dword [0x5ef7cc]
je 0x532ee1
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 4], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x532efb
mov eax, dword [eax + 4]
test eax, eax
je 0x532efb
mov dword [esp], ebx
call eax
mov dword [ebx + 0x10], 0xffffffff
mov dword [ebx + 0xc], 0x5ef790
add dword [esp + 0x7c], 5
mov ebx, dword [esp + 0x7c]
movzx eax, byte [ebx + 2]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 0x18
or eax, edx
movzx edx, byte [ebx + 3]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 4]
or eax, edx
mov ebx, dword [esp + 0x194]
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + eax*8 + 4]
mov dword [esp + 0xc0], edx
mov esi, dword [edx]
mov dword [esp + 0xa8], esi
mov eax, dword [edx + 8]
mov edi, dword [esp + 0xa4]
mov ebx, dword [edi + eax*8 + 4]
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x532f86
cmp eax, dword [0x5ef7cc]
je 0x532f7f
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 4], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x532f99
mov eax, dword [eax + 4]
test eax, eax
je 0x532f99
mov dword [esp], ebx
call eax
mov edx, dword [esp + 0xa0]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0xc], 0x5ef790
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xa8]
test edx, edx
jle 0x5375ec
mov esi, dword [esp + 0xa4]
lea ebx, [esi + eax*8]
xor edi, edi
mov dword [esp + 0x70], 0
mov dword [esp + 0x90], ebp
mov ebp, ecx
jmp 0x533035
lea edx, [esp + 0x104]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x190]
mov dword [esp], ecx
call fcn.004dfe8c
test eax, eax
jne 0x537590
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0xa0]
imul edx, esi
cmp edx, eax
jge 0x533027
mov dword [esp + 0x70], 1
inc edi
cmp edi, dword [esp + 0xa8]
je 0x5373c8
mov eax, dword [ebp + edi*4 + 0xc]
mov esi, dword [eax]
mov eax, dword [ebx + edi*8 + 4]
cmp dword [eax + 0xc], 0x5ef7f8
jne 0x532fe4
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x104], eax
jmp 0x533011
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x194]
mov ebx, dword [ebx + 0x48]
mov edi, dword [esi + 0x18]
add ebx, edi
mov dword [esp + 0x7c], ebx
jmp 0x532b0c
and ecx, 2
je 0x532bb8
mov eax, dword [esp + 0x190]
mov ecx, dword [eax + 0x234]
cmp ecx, 1
je 0x532b84
mov eax, ebx
cdq
idiv ecx
test edx, edx
je 0x532b84
jmp 0x532bb8
mov dword [esp + 0x100], 0
xor ecx, ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x70], 2
xor ebx, ebx
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x9c]
mov dword [edi + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x100]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x190]
mov dword [esp], ecx
call fcn.004f428c
mov dword [esp + 0xf0], eax
test eax, eax
je 0x533520
mov esi, dword [esp + 0x70]
add dword [esp + 0x7c], esi
inc dword [eax]
mov dword [esp + 0x98], 1
cmp ebx, 1
je 0x5331f8
cmp ebx, 2
je 0x533468
test ebx, ebx
jne 0x533554
mov eax, dword [esp + 0xf0]
mov ebx, dword [esp + 0x80]
mov dword [ebx + 4], eax
add ebx, 4
mov dword [esp + 0x80], ebx
jmp 0x532b0c
mov eax, dword [eax + 0x10]
lea edx, [eax + 0x10]
mov dword [esp + 0x100], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xf8], eax
shl esi, 0x18
shl ebx, 0x10
or esi, ebx
and edi, 0xff
or esi, edi
movzx eax, byte [esp + 0x70]
shl eax, 8
or esi, eax
cmp esi, 0xffffffff
jl 0x539331
mov dword [esp + 0x104], esi
mov ebx, 5
test esi, esi
js 0x53823a
cmp dword [esp + 0xf8], esi
jle 0x53823a
mov eax, dword [esp + 0x100]
mov eax, dword [eax + esi*4]
mov dword [esp + 0xf0], eax
mov edx, dword [eax]
inc edx
mov dword [eax], edx
add dword [esp + 0x7c], ebx
mov dword [esp + 0x90], 0
nop
mov edi, dword [esp + 0x80]
mov ebx, dword [edi]
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jle 0x533530
mov eax, dword [esp + 0xf0]
mov ebx, dword [esp + 0x80]
mov dword [ebx], eax
jmp 0x532b0c
mov edi, dword [esp + 0x80]
mov ebx, dword [edi]
mov ecx, dword [edi - 4]
mov dword [esp + 0x70], ecx
mov eax, dword [ecx + 0xc]
cmp eax, 0x5ef790
je 0x539367
cmp eax, 0x5ef77c
je 0x5394b0
mov ecx, dword [esp + 0x70]
cmp eax, 0x5ef7a4
je 0x537d18
test eax, eax
je 0x537f44
mov eax, dword [ecx + 4]
test eax, eax
je 0x533279
mov ecx, dword [esp + 0x70]
mov edi, dword [ecx + 8]
test edi, edi
je 0x537f4f
lea eax, [esp + 0xf8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xfc]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.004df018
test eax, eax
jne 0x537f4f
mov eax, dword [esp + 0xf8]
cmp eax, 5
je 0x537f4f
cmp eax, 4
je 0x537f4f
mov eax, dword [ebx + 0xc]
cmp eax, 0x5ef790
je 0x539b0d
cmp eax, 0x5ef77c
je 0x539aee
cmp eax, 0x5ef7a4
je 0x539ab6
test eax, eax
je 0x53894d
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x533302
mov edx, dword [ebx + 8]
test edx, edx
je 0x538958
lea esi, [esp + 0x104]
mov dword [esp + 0xc], esi
lea edi, [esp + 0x100]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004df018
test eax, eax
jne 0x538958
mov eax, dword [esp + 0x104]
cmp eax, 5
je 0x538958
cmp eax, 4
je 0x538958
mov edx, dword [esp + 0xf8]
cmp edx, 3
je 0x53335e
cmp eax, 3
jne 0x539688
lea esi, [esp + 0x140]
mov dword [esp + 0x90], esi
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.004dec0c
lea esi, [esp + 0x150]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004dec0c
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x90]
mov dword [esp], ebx
call fcn.0053dde0
mov dword [esp + 4], 0
mov dword [esp], esi
inc eax
je 0x53c1bf
call fcn.0053dde0
inc eax
je 0x53c1ac
mov ecx, 2
mov edi, esi
mov edx, ebx
lea ebx, [esp + 0x160]
mov dword [esp], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
call fcn.0053d71c
mov eax, dword [esp + 0x7c]
mov al, byte [eax]
mov byte [esp + 0xa0], al
cmp al, 0x2b
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
je 0x53c0d3
cmp al, 0x2c
je 0x53c060
cmp al, 0x2a
je 0x53ac7b
mov edx, dword [esp + 0x90]
mov dword [esp], edx
call fcn.0052532c
mov dword [esp], esi
call fcn.0052532c
mov ecx, dword [esp + 0x70]
cmp dword [ecx], 1
jle 0x53ac62
mov dword [esp], ebx
call fcn.004defd0
mov dword [esp + 0xf0], eax
inc dword [eax]
inc dword [esp + 0x7c]
mov dword [esp + 0x90], 0
lea esi, [esi]
mov esi, dword [esp + 0x80]
mov ebx, dword [esi]
sub esi, 4
mov dword [esp + 0x80], esi
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jg 0x5331f8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5336a1
mov eax, dword [eax + 4]
test eax, eax
je 0x5336a1
mov dword [esp], ebx
call fcn.004dd854
jmp 0x5331f8
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x9c]
mov dword [ebx + 0x10], esi
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x190]
mov dword [esp], ebx
call fcn.0053e890
mov dword [esp + 0x98], 1
dec eax
jne 0x532b3c
jmp 0x532c54
mov eax, dword [ebx + 4]
test eax, eax
jne 0x537063
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x9c]
mov dword [edx + 0x10], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x7c]
mov dl, byte [ebx]
mov eax, dword [esp + 0x190]
call fcn.00531cf4
nop
mov dword [esp + 0x98], 1
jmp 0x532c54
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5335f9
mov eax, dword [eax + 4]
test eax, eax
je 0x5335f9
mov dword [esp], ebx
call fcn.004dd854
jmp 0x53320e
lea esi, [ebx - 2]
mov dword [esp + 0xa0], esi
mov esi, 2
sub esi, ebx
xor ebx, ebx
mov dword [esp + 0xa8], ebp
mov ebp, dword [esp + 0x80]
cmp ebx, esi
je 0x53358e
lea esi, [esi]
mov edi, dword [ebp + ebx*4]
mov eax, dword [edi]
dec eax
mov dword [edi], eax
test eax, eax
jle 0x5335b4
dec ebx
cmp ebx, esi
jne 0x53357c
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xa0]
neg esi
mov ebx, dword [esp + 0x80]
lea ebx, [ebx + esi*4]
mov dword [esp + 0x80], ebx
jmp 0x533468
mov eax, dword [edi + 0xc]
test eax, eax
je 0x5335d0
mov edx, dword [eax + 4]
test edx, edx
je 0x5335d0
mov dword [esp], edi
call fcn.004dd854
dec ebx
jmp 0x53358a
mov eax, dword [edi + 4]
test eax, eax
je 0x5335e7
cmp eax, dword [0x5ef7cc]
je 0x5335e7
mov dword [esp], eax
call fcn.004ee144
mov dword [edi + 8], 0xffffffff
mov dword [esp], edi
call fcn.0050d50c
dec ebx
jmp 0x53358a
mov eax, dword [ebx + 4]
test eax, eax
je 0x533610
cmp eax, dword [0x5ef7cc]
je 0x533610
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050d50c
jmp 0x53320e
lea ecx, [esp + 0x104]
mov edx, dword [esp + 0x194]
mov eax, dword [esp + 0x7c]
call fcn.005317fc
test eax, eax
je 0x537282
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x9c]
mov dword [ebx + 0x10], esi
mov edx, dword [esp + 0x104]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x194]
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x190]
mov dword [esp], ebx
call fcn.00531618
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x90], 1
mov dword [esp + 0x98], 1
jmp 0x532c74
mov eax, dword [ebx + 4]
test eax, eax
je 0x5336b8
cmp eax, dword [0x5ef7cc]
je 0x5336b8
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050d50c
jmp 0x5331f8
sub dword [esp + 0x80], 4
mov ebx, dword [esp + 0x80]
cmp dword [esp + 0x8c], ebx
jae 0x53372e
mov esi, dword [esp + 0x8c]
jmp 0x5336f4
cmp esi, ebx
jae 0x53370e
mov eax, dword [ebx]
sub ebx, 4
mov edx, dword [eax]
dec edx
mov dword [eax], edx
test edx, edx
jg 0x5336f0
mov dword [esp], eax
call fcn.004dd854
cmp esi, ebx
jb 0x5336f4
mov eax, dword [esp + 0x8c]
not eax
mov ebx, dword [esp + 0x80]
add eax, ebx
not eax
and eax, 0xfffffffc
invalid