Function at 0x46c82c
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.0046cb0c
mov eax, dword [ebx]
cmp eax, 2
jne 0x46c871
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
cmp bl, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
jne 0x46ca1b
jmp 0x46caa0
test eax, eax
je 0x46ca07
mov eax, dword [esi + 0x100]
mov dword [esp + 4], edi
xor eax, dword [esi + 0x110]
or eax, dword [esi + 0x104]
jne 0x46ca75
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 0x53c060
push eax
call fcn.004558a3
pop ecx
pop ecx
cmp edi, edx
jb 0x46cabe
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 0x46c8fd
mov edx, ebp
lea ecx, [esi + 0x108]
mov ebp, eax
call fcn.00417c03
mov edx, dword [esi + 0x110]
mov eax, ebp
mov ecx, dword [esi + 0x10c]
push 0x53c63c
push eax
push edi
mov ebp, eax
call fcn.004a1e6c
add esp, 0xc
mov ecx, eax
push ebx
push dword [esp + 4]
call fcn.0049eaed
pop eax
pop ecx
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x110]
push 0x53c65c
push edi
call fcn.0046d6f7
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 0x53c66c
push ebp
push edi
call fcn.004a1e6c
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 0x53c67c
push ebp
call fcn.0046d740
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 0x46ca43
mov edi, dword [esp + 4]
mov ebp, eax
xor ebx, ebx
jmp 0x46c85b
and dword [esp + 8], 0
mov ebp, 0x80090317
xor ebx, ebx
mov dword [esp + 0xc], 0x80090317
lea ecx, [esp + 8]
call fcn.0046cad4
cmp al, 0xd
jne 0x46ca3f
and dword [esi + 0xb8], 0
lea eax, [esp + 8]
mov byte [edi], 5
push eax
call fcn.00441d62
pop eax
jmp 0x46caad
mov dword [edi], ebx
jmp 0x46caa3
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [esi + 0x110], eax
jb 0x46ca5d
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.0046d641
cmp byte [edi], 4
jne 0x46ca8d
mov edi, dword [esp + 4]
jmp 0x46ca9a
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
cmp bl, 4
jne 0x46cab5
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 0x46c85b
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x53c62c
call fcn.0050af40
pop eax
ud2