Function at 0x49cc9e
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], 0x5054e0
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 + 0x1c], eax
call fcn.0049cf6e
mov eax, dword [ebp - 0x68]
cmp eax, 2
jne 0x49cd02
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp bl, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], ebx
je 0x49ceed
jmp 0x49cefe
test eax, eax
je 0x49ce90
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x50]
xor eax, dword [edx + 0x60]
or eax, dword [edx + 0x54]
jne 0x49cec9
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 0x49cf46
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 + 0x60]
cmp edx, esi
jae 0x49cd7f
lea ecx, [eax + 0x58]
mov edx, esi
call fcn.00422f47
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x60]
mov ecx, dword [eax + 0x5c]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x60]
mov ecx, dword [eax + 0x5c]
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, 0x80
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
mov esi, eax
test eax, eax
je 0x49cea4
and dword [ebp - 0x68], 0
xor ebx, ebx
jmp 0x49cefb
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ebx, ebx
jmp 0x49cefe
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
add eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x50]
cmp dword [edx + 0x60], eax
jb 0x49ceb8
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x6c]
and dword [edx + 0x54], 0
and dword [edx + 0x50], 0
mov dword [edx + 0xb0], eax
lea ecx, [ebp - 0x68]
call fcn.0049e0cb
cmp byte [ebp - 0x68], 4
jne 0x49cedc
mov eax, dword [ebp - 0x20]
jmp 0x49cee7
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
cmp bl, 4
jne 0x49cef5
mov esi, dword [eax + 0xb0]
mov eax, dword [ebp - 0x38]
mov byte [eax], 4
jmp 0x49cf2b
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 0x49cf26
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
or dword [ebp - 0x10], 0xffffffff
and dword [ecx + 0x1c], 0
mov byte [eax], 5
push edi
call fcn.0044f14e
pop eax
jmp 0x49cf35
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], esi
and dword [ecx + 0x1c], 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