Function at 0x140046e86
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x130], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.140041def
mov eax, dword [rbx]
cmp eax, 2
je 0x140047026
test eax, eax
je 0x140046fd6
mov rbp, qword [rsi + 0x190]
cmp rbp, qword [rsi + 0x188]
jne 0x140047010
mov rax, qword [rsp + 0xe0]
mov r14, qword [rsp + 0x30]
mov edx, r14d
shr r14, 0x20
cmp rax, r14
cmovb r14, rax
mov r13d, dword [rsp + 0x2c]
lea r15, [r14 + r13]
add rdx, r15
cmp rbp, rdx
jae 0x140046f19
lea rcx, [rsi + 0x178]
call fcn.1400d070d
mov rbp, qword [rsi + 0x188]
cmp rbp, r15
jb 0x1400470a3
mov rcx, qword [rsi + 0x180]
add rcx, r13
mov rdx, r12
mov r8, r14
call fcn.1400fc250
cmp rbp, r13
jb 0x1400470af
mov rdx, qword [rsi + 0x188]
cmp rdx, r15
jb 0x1400470c1
mov rax, qword [rsi + 0x180]
lea rcx, [rax + r13]
sub edx, r15d
add r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r15
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0x1e8]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140046fe2
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x14004702b
movabs rbx, 0x8009031700000002
jmp 0x14004702b
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x188], rax
jb 0x140046ffe
mov qword [rsi + 0x188], rax
mov qword [rsi + 0x190], 0
mov qword [rsi + 0x210], r14
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.140042b91
cmp qword [rbx], 0
je 0x14004708a
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 1
mov rcx, rbx
call fcn.1400101a1
cmp al, 0xd
jne 0x140047063
lea rcx, [rsp + 0x30]
mov qword [rdi], 2
mov qword [rsi + 0x130], 0
call fcn.140001867
jmp 0x140047079
mov qword [rdi], 1
mov qword [rdi + 8], rbx
mov qword [rsi + 0x130], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x210]
xor ecx, ecx
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rsi + 0x130], rcx
jmp 0x140047079
lea r8, str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEndC:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r15
jmp 0x1400470b9
lea r8, str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEndC:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r13
mov rdx, rbp
call fcn.1400ff6c0
lea r8, str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEndC:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r15
call fcn.1400ff6c0
int3