Function at 0x49ef25
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], 0x505540
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.0049f234
mov eax, dword [ebp - 0x68]
cmp eax, 2
jne 0x49ef8c
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp bl, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], ebx
je 0x49f1aa
jmp 0x49f1bb
test eax, eax
je 0x49f141
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xf8]
xor eax, dword [edx + 0x108]
or eax, dword [edx + 0xfc]
jne 0x49f186
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 0x58c05c
mov dword [ebp - 0x6c], eax
push eax
call fcn.004646c5
pop ecx
pop esi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], edx
jb 0x49f209
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 0x49f01b
lea ecx, [eax + 0x100]
mov edx, esi
call fcn.00422f47
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x108]
mov ecx, dword [eax + 0x104]
push 0x58c694
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0049e19e
add esp, 0xc
mov esi, dword [ebp - 0x34]
mov ecx, eax
push 0x58c6a4
push esi
push dword [ebp - 0x30]
call fcn.00467b33
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x104]
mov edx, dword [eax + 0x108]
push 0x58c6b4
push dword [ebp - 0x24]
call fcn.0049e1bb
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 0x58c6c4
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0049e19e
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 0x58c6d4
push dword [ebp - 0x2c]
call fcn.0049e189
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 0x49f155
and dword [ebp - 0x68], 0
xor ebx, ebx
jmp 0x49f1b8
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ebx, ebx
jmp 0x49f1bb
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 0x49f16f
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.004a03f9
cmp byte [ebp - 0x68], 4
jne 0x49f199
mov eax, dword [ebp - 0x20]
jmp 0x49f1a4
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
cmp bl, 4
jne 0x49f1b2
mov esi, dword [eax + 0x158]
mov eax, dword [ebp - 0x38]
mov byte [eax], 4
jmp 0x49f1eb
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x68]
mov ecx, edi
call fcn.0043dba8
cmp al, 0xd
jne 0x49f1e6
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.0044f14e
pop eax
jmp 0x49f1f8
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 0x58c684
call fcn.005373b0
pop eax
ud2