Function at 0x4a90e1
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 + 0xc0], eax
lea edi, [esp + 8]
mov ecx, edi
call fcn.0049c7aa
mov eax, dword [edi]
cmp eax, 2
jne 0x4a9125
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
cmp al, 4
je 0x4a932d
jmp 0x4a933f
test eax, eax
je 0x4a92c1
mov eax, dword [esi + 0x110]
xor eax, dword [esi + 0x120]
or eax, dword [esi + 0x114]
jne 0x4a930d
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 0x4a937b
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 + 0x120]
cmp edx, ebx
jae 0x4a91b1
lea ecx, [esi + 0x118]
mov edx, ebx
mov ebx, eax
call fcn.004177b0
mov eax, ebx
mov edx, dword [esi + 0x120]
mov ecx, dword [esi + 0x118]
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 + 0x118]
mov edx, dword [esi + 0x120]
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 + 0x118]
mov edx, dword [esi + 0x120]
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 + 0x118]
mov edx, dword [esi + 0x120]
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 + 0x128]
push 0
push ecx
push 0
push eax
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x4a92d7
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], ebx
and dword [esp + 8], 0
mov ebp, dword [esp + 4]
jmp 0x4a933f
and dword [esp + 8], 0
mov dword [esp + 0xc], 0x80090317
mov ebx, 0x80090317
xor eax, eax
jmp 0x4a933f
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [esi + 0x120], eax
mov ebp, dword [esp + 4]
jb 0x4a92f5
mov dword [esi + 0x120], eax
and dword [esi + 0x114], 0
and dword [esi + 0x110], 0
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14c], eax
lea edi, [esp + 8]
mov ecx, edi
mov edx, esi
call fcn.0049d395
cmp byte [edi], 4
je 0x4a9327
mov eax, dword [esp + 8]
cmp al, 4
jne 0x4a9333
mov ebx, dword [esi + 0x14c]
mov byte [ebp], 4
jmp 0x4a9369
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 0x4a9366
mov byte [ebp], 5
and dword [esi + 0xc0], 0
lea eax, [esp + 8]
push eax
call fcn.0049a51c
pop eax
jmp 0x4a9373
mov dword [ebp], edi
mov dword [ebp + 4], ebx
and dword [esi + 0xc0], 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