Function at 0x49db6d
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, edx
mov ebp, ecx
mov eax, dword [esp + 0x64]
mov dword [edx + 0x1c], eax
lea edi, [esp + 8]
mov ecx, edi
call fcn.0049b69b
mov eax, dword [edi]
cmp eax, 2
jne 0x49dbae
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
cmp al, 4
je 0x49dd83
jmp 0x49dd95
test eax, eax
je 0x49dd23
mov eax, dword [esi + 0x68]
xor eax, dword [esi + 0x78]
or eax, dword [esi + 0x6c]
jne 0x49dd63
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp edx, edi
mov eax, edi
cmovb eax, edx
push 0x541990
mov dword [esp + 0x3c], eax
push eax
call fcn.00467c02
pop ecx
pop ecx
cmp edi, edx
jb 0x49ddcb
mov ebp, edx
mov dword [esp], eax
mov eax, edx
mov edi, dword [esp + 0x40]
add eax, edi
add ebx, eax
mov edx, dword [esi + 0x78]
cmp edx, ebx
jae 0x49dc28
lea ecx, [esi + 0x70]
mov edx, ebx
mov ebx, eax
call fcn.004177b0
mov eax, ebx
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x70]
push 0x541d10
push eax
push edi
mov ebx, eax
call fcn.0049dde0
add esp, 0xc
mov ecx, eax
push ebp
push dword [esp + 4]
call fcn.0048cf60
pop eax
pop ecx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
push 0x541d30
push edi
call fcn.0049c430
pop ecx
pop ecx
mov dword [esp], eax
test eax, eax
cmove edx, eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
push 0x541d40
push ebx
push edi
call fcn.0049dde0
add esp, 0xc
mov ebp, eax
mov edi, edx
test eax, eax
cmove edi, eax
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
push 0x541d50
push ebx
call fcn.0049c63a
pop ecx
pop ecx
test eax, eax
cmove edx, eax
and dword [esp + 0x2c], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 7
mov ecx, dword [esp]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 6
lea ecx, [esp + 0x44]
and dword [ecx], 0
mov dword [esp + 0x28], eax
mov dword [ecx + 4], 4
lea eax, [esp + 8]
mov dword [ecx + 8], eax
lea eax, [esi + 0x80]
push 0
push ecx
push 0
push eax
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x49dd39
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], ebx
and dword [esp + 8], 0
mov ebp, dword [esp + 4]
jmp 0x49dd95
and dword [esp + 8], 0
mov dword [esp + 0xc], 0x80090317
mov ebx, 0x80090317
xor eax, eax
jmp 0x49dd95
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [esi + 0x78], eax
mov ebp, dword [esp + 4]
jb 0x49dd51
mov dword [esi + 0x78], eax
and dword [esi + 0x6c], 0
and dword [esi + 0x68], 0
mov eax, dword [esp + 0x38]
mov dword [esi + 0xa4], eax
lea edi, [esp + 8]
mov ecx, edi
mov edx, esi
call fcn.0049c221
cmp byte [edi], 4
je 0x49dd7d
mov eax, dword [esp + 8]
cmp al, 4
jne 0x49dd89
mov ebx, dword [esi + 0xa4]
mov byte [ebp], 4
jmp 0x49ddbc
mov ebx, dword [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov edi, eax
lea ecx, [esp + 8]
call fcn.004325d8
cmp al, 0xd
jne 0x49ddb9
mov byte [ebp], 5
and dword [esi + 0x1c], 0
lea eax, [esp + 8]
push eax
call fcn.0049a51c
pop eax
jmp 0x49ddc3
mov dword [ebp], edi
mov dword [ebp + 4], ebx
and dword [esi + 0x1c], 0
add esp, 0x50
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 0x541d00
call fcn.00506cd0
pop eax
ud2