Function at 0x451e50
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
je 0x45200d
mov eax, dword [ebp + 0x24]
push 0
push 0
push 0x38
push eax
mov eax, dword [ebp + 0x10]
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call fcn.00451d80
add esp, 0x18
test eax, eax
je 0x45200d
push 0x55ba30
push 0
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
test eax, eax
mov dword [esi + 0x10040], eax
jne 0x451eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.authdata_setup_schannel_failed__CertOpenSystemStore_returned_GetLastError_of__u
jmp 0x452004
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x10]
mov ecx, eax
and ecx, 4
add ecx, ecx
mov edx, eax
and edx, 2
or ecx, edx
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [ebp + 0x1c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
or dword [edi + 0x20], ecx
test eax, eax
mov dword [edi], 4
mov dword [edi + 0x18], eax
je 0x451eea
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp + 0x28]
mov eax, edi
mov dword [edi + 0x30], 0x18
call fcn.00450920
test eax, eax
je 0x45200d
mov ecx, dword [edi]
push ecx
push str.dwVersion_________________d_n
push 2
call fcn.004774c0
mov edx, dword [edi + 4]
push edx
push str.cCreds____________________d_n
push 2
call fcn.004774c0
mov eax, dword [edi + 8]
push eax
push str.paCred____________________p_n
push 2
call fcn.004774c0
mov ecx, dword [edi + 0xc]
push ecx
push str.hRootStore________________p_n
push 2
call fcn.004774c0
mov edx, dword [edi + 0x10]
push edx
push str.cMappers__________________d_n
push 2
call fcn.004774c0
mov eax, dword [edi + 0x14]
push eax
push str.aphMappers________________p_n
push 2
call fcn.004774c0
mov ecx, dword [edi + 0x18]
add esp, 0x48
push ecx
push str.cSupportedAlgs____________d_n
push 2
call fcn.004774c0
mov edx, dword [edi + 0x20]
push edx
push str.grbitEnabledProtocols_____x_n
push 2
call fcn.004774c0
mov eax, dword [edi + 0x24]
push eax
push str.dwMinimumCipherStrength___d_n
push 2
call fcn.004774c0
mov ecx, dword [edi + 0x28]
push ecx
push str.dwMaximumCipherStrength___d_n
push 2
call fcn.004774c0
mov edx, dword [edi + 0x2c]
push edx
push str.dwSessionLifespan_________d_n
push 2
call fcn.004774c0
mov eax, dword [edi + 0x30]
push eax
push str.dwFlags___________________x_n
push 2
call fcn.004774c0
mov ecx, dword [edi + 0x34]
add esp, 0x48
push ecx
push str.dwCredFormat______________d_n
push 2
call fcn.004774c0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
add esp, 0xc
push 0
lea edx, [esi + 4]
push edx
mov edx, dword [esi + 0x14]
push 0
push 0
push eax
push 0
push ecx
push edx
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x452051
push eax
push str.authdata_setup_schannel_failed__AcquireCredentialsHandle_returned__lx
push ebx
call fcn.00449de0
add esp, 0xc
push 0
push esi
call fcn.00451a90
add esp, 8
test eax, eax
jne 0x45202b
push str.authdata_cleanup___failed_in_authdata_setup_schannel___n
push 1
call fcn.004774c0
add esp, 8
test ebx, ebx
je 0x45204a
push ebx
call fcn.00449ed0
add esp, 4
test eax, eax
jne 0x45204a
push str.authdata_setup_schannel_failed
push ebx
call fcn.00449de0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, 1
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebx
pop ebp
ret