Function at 0x5026c3
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
lea ebx, [esp + 8]
mov esi, ecx
mov edi, edx
mov ecx, ebx
call fcn.004f8a47
mov eax, dword [ebx]
cmp eax, 2
jne 0x5026ed
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x5028ba
xor ecx, ecx
test eax, eax
je 0x502860
mov eax, dword [edi + 0x38]
xor eax, dword [edi + 0x48]
or eax, dword [edi + 0x3c]
jne 0x50288d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
cmp edx, ebp
mov eax, ebp
cmovb eax, edx
push 0x645950
mov dword [esp + 0x3c], eax
push eax
call fcn.0046fcb7
pop ecx
pop ecx
cmp ebp, edx
jb 0x5028c7
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, edx
mov dword [esp], edx
mov edx, dword [edi + 0x48]
add eax, ebp
add ebx, eax
cmp edx, ebx
jae 0x502767
mov edx, ebx
lea ecx, [edi + 0x40]
mov ebx, eax
call fcn.00465dc9
mov edx, dword [edi + 0x48]
mov eax, ebx
mov ecx, dword [edi + 0x44]
push 0x645afc
push eax
push ebp
mov ebx, eax
mov dword [esp + 0x48], eax
call fcn.004fa48a
add esp, 0xc
mov ecx, eax
push 0x645b0c
push dword [esp + 4]
push dword [esp + 0xc]
call fcn.00451a03
add esp, 0xc
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
push 0x645b1c
push ebp
call fcn.004fa277
pop ecx
pop ecx
test eax, eax
mov ecx, dword [edi + 0x44]
mov dword [esp + 4], eax
cmove edx, eax
mov dword [esp], edx
mov edx, dword [edi + 0x48]
push 0x645b2c
push ebx
push ebp
call fcn.004fa48a
add esp, 0xc
mov ebx, edx
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
test eax, eax
mov ebp, eax
cmove ebx, eax
push 0x645b3c
push dword [esp + 0x40]
call fcn.004fa4a7
pop ecx
pop ecx
mov ecx, dword [esp]
test eax, eax
cmove edx, eax
and dword [esp + 0x2c], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], 7
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 8]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x70]
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x502867
xor ecx, ecx
jmp 0x5028ba
mov eax, 0x80090317
jmp 0x5028ba
mov eax, dword [esp + 0x14]
add eax, dword [esp + 8]
add eax, dword [esp + 0x20]
cmp dword [edi + 0x48], eax
jb 0x50287b
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x38]
and dword [edi + 0x3c], 0
and dword [edi + 0x38], 0
mov dword [edi + 0xa0], eax
lea ebx, [esp + 8]
mov edx, edi
mov ecx, ebx
call fcn.004fa110
cmp byte [ebx], 4
je 0x5028a8
mov ecx, dword [esp + 8]
cmp cl, 4
jne 0x5028b6
mov eax, dword [edi + 0xa0]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x5028bf
mov eax, dword [esp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], eax
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 0x645aec
call fcn.0059a2a0
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea ebx, [ebp - 0x24]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x585fc0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
test esi, esi
je 0x502968
or dword [ebp - 0x10], 0xffffffff
push esi
push edi
push dword [ebp + 0xc]
push ebx
call fcn.005002df
add esp, 0x10
cmp byte [ebp - 0x24], 4
jne 0x502950
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x502970
and dword [ebp - 0x10], 0
mov edx, edi
push 0x64a2a4
push esi
call fcn.004fa4bc
pop ecx
pop esi
cmp byte [ebp - 0x24], 4
mov edi, eax
mov esi, edx
lea ebx, [ebp - 0x24]
je 0x50290b
jmp 0x50295b
mov ecx, ebx
call fcn.004fc020
test al, al
je 0x50297f
or dword [ebp - 0x10], 0xffffffff
push ebx
call fcn.004583ed
pop eax
jmp 0x50290b
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x50298b
mov eax, dword [ebp + 8]
mov byte [eax], 2
mov dword [eax + 4], 0x652ca4
jmp 0x50298b
movsd xmm0, qword [ebp - 0x24]
mov eax, dword [ebp + 8]
movsd qword [eax], xmm0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret