// File: /workspace/github_cpp_makefile_star2_O1/Tarstingo[P]rarcrack/crackrar.cpp
// Function: testKey(std::vector<unsigned char, std::allocator<unsigned char>>, std::vector<unsigned char, std::allocator<unsigned char>>, std::vector<unsigned char, std::allocator<unsigned char>>, unsigned char*)
int testKey(std::vector<muchar> salt,std::vector<muchar> s,std::vector<muchar> iv,muchar *key)
{
    std::vector<muchar> veckey=toWideChar(key);
    std::vector<muchar> M=veckey+salt;
    muchar B[20];
    Bsha1(M,B);
    muchar C[16];
    CAes(B,s,C);
    if(((C[12]^iv[12])==0x20)&&(C[13]==iv[13])&&(C[14]==iv[14])&&(C[15]==iv[15]))
        return 1;
    else
        return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq -0x88(%rbp), %r13
movq %r13, %rdi
movq %rcx, %rsi
callq 0x2478
movq 0x8(%r13), %r12
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
subq (%r13), %r12
je 0x2c1d
js 0x2de3
movq %r12, %rdi
callq 0x2160
movq %rax, %r13
jmp 0x2c20
xorl %r13d, %r13d
movq %r13, -0x40(%rbp)
movq %r13, -0x38(%rbp)
addq %r13, %r12
movq %r12, -0x30(%rbp)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %r12
subq %rsi, %r12
je 0x2c4a
movq %r13, %rdi
movq %r12, %rdx
callq 0x21f0
addq %r12, %r13
movq %r13, -0x38(%rbp)
leaq -0xd0(%rbp), %rdi
movq %r15, %rsi
callq 0x2ee8
leaq -0x58(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x242c
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x2c8f
movq -0xc0(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2ca4
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x50(%rbp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movq $0x0, -0x90(%rbp)
subq -0x58(%rbp), %r15
je 0x2cd6
js 0x2de8
movq %r15, %rdi
callq 0x2160
movq %rax, %r12
jmp 0x2cd9
xorl %r12d, %r12d
movq %r12, -0xa0(%rbp)
movq %r12, -0x98(%rbp)
leaq (%r12,%r15), %rax
movq %rax, -0x90(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %r13
subq %rsi, %r13
je 0x2d0a
movq %r12, %rdi
movq %r13, %rdx
callq 0x21f0
addq %r12, %r13
leaq -0xa0(%rbp), %rdi
movq %r13, 0x8(%rdi)
leaq -0xf0(%rbp), %rsi
callq 0x292a
testq %r12, %r12
je 0x2d34
movq %r12, %rdi
movq %r15, %rsi
callq 0x2170
leaq -0xb8(%rbp), %rdi
movq %r14, %rsi
callq 0x2ee8
leaq -0xf0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x2b34
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x2d75
movq -0xa8(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq (%rbx), %rax
movb 0xc(%rax), %cl
xorb -0x64(%rbp), %cl
cmpb $0x20, %cl
jne 0x2da0
movb -0x63(%rbp), %cl
cmpb 0xd(%rax), %cl
jne 0x2da0
movb -0x62(%rbp), %cl
cmpb 0xe(%rax), %cl
jne 0x2da0
movb -0x61(%rbp), %cl
movl $0x1, %ebx
cmpb 0xf(%rax), %cl
je 0x2da2
xorl %ebx, %ebx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2db7
movq -0x48(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x2dcf
movq -0x78(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2080
callq 0x2080
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x2e54
movq -0xa8(%rbp), %rsi
subq %rdi, %rsi
jmp 0x2e18
jmp 0x2e51
movq %rax, %rbx
testq %r12, %r12
je 0x2e54
movq %r12, %rdi
movq %r15, %rsi
callq 0x2170
jmp 0x2e54
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x2e42
movq -0xc0(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x2e42
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2e6e
movq -0x30(%rbp), %rsi
jmp 0x2e61
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2e6e
movq -0x48(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x2e6e
movq %rax, %rbx
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x2e86
movq -0x78(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2230