Function at 0x49e455
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x504a60
mov esi, dword fs:[0]
mov dword [ecx], esi
mov dword fs:[0], ecx
and dword [ecx + 8], 0
lea ecx, [ebp - 0x68]
mov dword [edx + 0xc0], eax
call fcn.0049e764
mov eax, dword [ebp - 0x68]
cmp eax, 2
jne 0x49e4bc
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp bl, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], ebx
je 0x49e6da
jmp 0x49e6eb
test eax, eax
je 0x49e671
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xf8]
xor eax, dword [edx + 0x108]
or eax, dword [edx + 0xfc]
jne 0x49e6b6
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], esi
cmp edx, eax
mov dword [ebp - 0x2c], eax
cmovb eax, edx
push 0x58b0f8
mov dword [ebp - 0x6c], eax
push eax
call fcn.00463bf5
pop ecx
pop esi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], edx
jb 0x49e739
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
add eax, edx
mov dword [ebp - 0x2c], eax
add esi, eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x108]
cmp edx, esi
jae 0x49e54b
lea ecx, [eax + 0x100]
mov edx, esi
call fcn.00422467
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x108]
mov ecx, dword [eax + 0x104]
push 0x58b730
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0049d6ce
add esp, 0xc
mov esi, dword [ebp - 0x34]
mov ecx, eax
push 0x58b740
push esi
push dword [ebp - 0x30]
call fcn.00467063
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x104]
mov edx, dword [eax + 0x108]
push 0x58b750
push dword [ebp - 0x24]
call fcn.0049d6eb
pop ecx
pop esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
test eax, eax
cmove ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x104]
mov edx, dword [eax + 0x108]
push 0x58b760
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0049d6ce
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x108]
mov ecx, dword [eax + 0x104]
push 0x58b770
push dword [ebp - 0x2c]
call fcn.0049d6b9
pop ecx
pop esi
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
test esi, esi
cmove edi, esi
test eax, eax
cmove edx, eax
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 6
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x68]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x128
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
mov esi, eax
test eax, eax
je 0x49e685
and dword [ebp - 0x68], 0
xor ebx, ebx
jmp 0x49e6e8
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ebx, ebx
jmp 0x49e6eb
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
add eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x50]
cmp dword [edx + 0x108], eax
jb 0x49e69f
mov dword [edx + 0x108], eax
mov eax, dword [ebp - 0x6c]
and dword [edx + 0xfc], 0
and dword [edx + 0xf8], 0
mov dword [edx + 0x158], eax
lea ecx, [ebp - 0x68]
call fcn.0049f929
cmp byte [ebp - 0x68], 4
jne 0x49e6c9
mov eax, dword [ebp - 0x20]
jmp 0x49e6d4
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
cmp bl, 4
jne 0x49e6e2
mov esi, dword [eax + 0x158]
mov eax, dword [ebp - 0x38]
mov byte [eax], 4
jmp 0x49e71b
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x68]
mov ecx, edi
call fcn.0043d0d4
cmp al, 0xd
jne 0x49e716
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
or dword [ebp - 0x10], 0xffffffff
and dword [ecx + 0xc0], 0
mov byte [eax], 5
push edi
call fcn.0044e682
pop eax
jmp 0x49e728
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], esi
and dword [ecx + 0xc0], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x58b720
call fcn.005360b0
pop eax
ud2