Function at 0x46fce1
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x64]
lea ebx, [esp + 8]
mov edi, ecx
mov esi, edx
mov ecx, ebx
mov dword [edx + 0xb8], eax
call fcn.0046ff88
mov eax, dword [ebx]
cmp eax, 2
jne 0x46fd26
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
cmp bl, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
jne 0x46fed0
jmp 0x46ff55
test eax, eax
je 0x46febc
mov eax, dword [esi + 0x100]
mov dword [esp + 4], edi
xor eax, dword [esi + 0x110]
or eax, dword [esi + 0x104]
jne 0x46ff2a
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
cmp eax, edi
mov ecx, edi
cmovb ecx, eax
mov dword [esp + 0x38], ecx
push 0x53d234
push eax
call fcn.004586a3
pop ecx
pop ecx
cmp edi, edx
jb 0x46ff73
mov edi, dword [esp + 0x40]
mov dword [esp], eax
mov eax, edx
mov ebx, edx
mov edx, dword [esi + 0x110]
add eax, edi
add ebp, eax
cmp edx, ebp
jae 0x46fdb2
mov edx, ebp
lea ecx, [esi + 0x108]
mov ebp, eax
call fcn.00419289
mov edx, dword [esi + 0x110]
mov eax, ebp
mov ecx, dword [esi + 0x10c]
push 0x53d7f8
push eax
push edi
mov ebp, eax
call fcn.004a5044
add esp, 0xc
mov ecx, eax
push ebx
push dword [esp + 4]
call fcn.004a1e9b
pop eax
pop ecx
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x110]
push 0x53d818
push edi
call fcn.00470b73
pop ecx
pop ecx
test eax, eax
mov ecx, dword [esi + 0x10c]
mov dword [esp], eax
cmove edx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x110]
push 0x53d828
push ebp
push edi
call fcn.004a5044
add esp, 0xc
mov edi, edx
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x110]
test eax, eax
mov ebx, eax
cmove edi, eax
push 0x53d838
push ebp
call fcn.00470ba9
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
test eax, eax
cmove edx, eax
and dword [esp + 0x2c], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 8], ecx
mov ecx, dword [esp]
mov dword [esp + 0xc], 7
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 8]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [esi + 0xc0]
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x46fef8
mov edi, dword [esp + 4]
mov ebp, eax
xor ebx, ebx
jmp 0x46fd10
and dword [esp + 8], 0
mov ebp, 0x80090317
xor ebx, ebx
mov dword [esp + 0xc], 0x80090317
lea ecx, [esp + 8]
call fcn.00425b14
cmp al, 0xd
jne 0x46fef4
and dword [esi + 0xb8], 0
lea eax, [esp + 8]
mov byte [edi], 5
push eax
call fcn.00442ab5
pop eax
jmp 0x46ff62
mov dword [edi], ebx
jmp 0x46ff58
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [esi + 0x110], eax
jb 0x46ff12
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x38]
and dword [esi + 0x104], 0
and dword [esi + 0x100], 0
mov dword [esi + 0x148], eax
lea edi, [esp + 8]
mov edx, esi
mov ecx, edi
call fcn.00470abd
cmp byte [edi], 4
jne 0x46ff42
mov edi, dword [esp + 4]
jmp 0x46ff4f
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
cmp bl, 4
jne 0x46ff6a
mov ebp, dword [esi + 0x148]
mov byte [edi], 4
and dword [esi + 0xb8], 0
mov dword [edi + 4], ebp
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, dword [esp + 0xc]
jmp 0x46fd10
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x53d7e8
call fcn.0050d590
pop eax
ud2