Function at 0x50d340
Capabilities:
Authenticate hmac

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x50d5d3
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rbx
lea rax, [0x0062ed20]
call fcn.0040d180
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdx]
call rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x30], rax
cmp dword [0x00872310], 0
jne 0x50d39f
mov qword [rcx + 0x38], rbx
jmp 0x50d3a8
lea rdi, [rcx + 0x38]
call fcn.00462d60
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx]
call rax
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x40], rax
cmp dword [0x00872310], 0
jne 0x50d3ca
mov qword [rcx + 0x48], rbx
jmp 0x50d3d3
lea rdi, [rcx + 0x48]
call fcn.00462d60
mov byte [rsp + 0x27], 1
mov rax, rcx
lea rbx, [rsp + 0x27]
call fcn.0050d620
cmp byte [rsp + 0x27], 0
je 0x50d5bf
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x40]
mov rax, qword [rcx + 0x48]
mov rdx, qword [rdx + 0x18]
call rdx
mov qword [rsp + 0x28], rax
mov rbx, rax
mov rcx, rbx
lea rax, [0x00603220]
call fcn.004493e0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov qword [rdx + 0x20], rcx
mov qword [rdx + 0x28], rcx
cmp dword [0x00872310], 0
jne 0x50d43b
mov qword [rdx + 0x18], rax
jmp 0x50d445
lea rdi, [rdx + 0x18]
nop
call fcn.00462c20
lea rax, [0x00603220]
mov rbx, rcx
call fcn.004493e0
mov rdx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
cmp dword [0x00872310], 0
jne 0x50d474
mov qword [rdi], rax
jmp 0x50d479
call fcn.00462c20
mov rcx, qword [rsp + 0x68]
nop
cmp rdx, rcx
jl 0x50d48c
mov rax, qword [rsp + 0x60]
jmp 0x50d4c6
mov rdx, qword [rdi + 0x30]
mov rax, qword [rdi + 0x38]
mov rdx, qword [rdx + 0x38]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
call rdx
mov rdx, qword [rsp + 0x38]
mov rsi, qword [rdx + 0x30]
mov rax, qword [rdx + 0x38]
mov rsi, qword [rsi + 0x30]
xor ebx, ebx
xor ecx, ecx
mov rdi, rcx
call rsi
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, qword [rdi + 0x20]
cmp rcx, rdx
cmovl rdx, rcx
mov rsi, qword [rdi + 0x18]
cmp rax, rsi
je 0x50d501
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rcx, rdx
mov rax, rsi
call fcn.00463a20
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rdi + 8]
cmp rcx, rdx
cmovl rdx, rcx
mov rsi, qword [rdi]
cmp rax, rsi
je 0x50d52a
mov rbx, rax
mov rcx, rdx
mov rax, rsi
nop dword [rax]
call fcn.00463a20
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rdi + 0x20]
xor eax, eax
jmp 0x50d542
movzx r8d, byte [rax + rsi]
xor r8d, 0x36
mov byte [rsi + rax], r8b
inc rax
cmp rax, rdx
jge 0x50d556
mov rsi, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
cmp rax, rcx
jb 0x50d532
jmp 0x50d5ba
mov rdx, qword [rdi + 8]
xor eax, eax
jmp 0x50d56e
movzx r8d, byte [rax + rsi]
xor r8d, 0x5c
mov byte [rsi + rax], r8b
inc rax
cmp rax, rdx
jge 0x50d582
mov rsi, qword [rdi]
mov rcx, qword [rdi + 8]
cmp rax, rcx
jb 0x50d55e
nop
jmp 0x50d5b5
mov rdx, qword [rdi + 0x40]
mov rax, qword [rdi + 0x48]
mov rdx, qword [rdx + 0x38]
mov rbx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
mov rsi, qword [rdi + 0x28]
mov rdi, rsi
call rdx
lea rax, [0x006a22b8]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.004630c0
call fcn.004630c0
lea rax, [0x00603060]
lea rbx, [0x00699df0]
call fcn.00435820
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004609c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0050d340