Function at 0x49c1ce
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], 0x504a00
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.0049c49e
mov eax, dword [ebp - 0x68]
cmp eax, 2
jne 0x49c232
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp bl, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], ebx
je 0x49c41d
jmp 0x49c42e
test eax, eax
je 0x49c3c0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x50]
xor eax, dword [edx + 0x60]
or eax, dword [edx + 0x54]
jne 0x49c3f9
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 0x49c476
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 0x49c2af
lea ecx, [eax + 0x58]
mov edx, esi
call fcn.00422467
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x60]
mov ecx, dword [eax + 0x5c]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x60]
mov ecx, dword [eax + 0x5c]
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, 0x80
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
mov esi, eax
test eax, eax
je 0x49c3d4
and dword [ebp - 0x68], 0
xor ebx, ebx
jmp 0x49c42b
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ebx, ebx
jmp 0x49c42e
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 0x49c3e8
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.0049d5fb
cmp byte [ebp - 0x68], 4
jne 0x49c40c
mov eax, dword [ebp - 0x20]
jmp 0x49c417
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
cmp bl, 4
jne 0x49c425
mov esi, dword [eax + 0xb0]
mov eax, dword [ebp - 0x38]
mov byte [eax], 4
jmp 0x49c45b
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 0x49c456
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.0044e682
pop eax
jmp 0x49c465
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 0x58b720
call fcn.005360b0
pop eax
ud2