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

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4864b9
push str.base_stream
push str.mongoc_stream_tls_new_with_hostname
push 0xd2
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_stream_tls.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
jmp fcn.004c3b6b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x4864cb
cmp byte [eax + 0x14], 0
je 0x4864cf
mov byte [eax + 0x15], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
jmp 0x4a33b0
sub esp, 0x3c
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], 0
test ebp, ebp
je 0x4a361d
push esi
mov esi, dword [esp + 0x50]
test esi, esi
je 0x4a364e
push ebx
push edi
push 0x48
call fcn.00449bf0
push 0x4400
mov ebx, eax
call fcn.00449bb0
push 0x4400
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x24], 0x4400
call fcn.00449bb0
push 0x88
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], 0x4400
call fcn.00449bf0
mov edi, eax
push 0x38
push 0
mov dword [edi], 5
mov dword [edi + 4], 0x4a2890
mov dword [edi + 0x28], 0x4a2a40
mov dword [edi + 8], 0x4a2690
mov dword [edi + 0xc], 0x4a2a50
mov dword [edi + 0x10], 0x4a2ff0
mov dword [edi + 0x14], 0x4a2ad0
mov dword [edi + 0x18], 0x4a2df0
mov dword [edi + 0x1c], 0x4a2a90
mov dword [edi + 0x20], 0x4a2640
mov dword [edi + 0x2c], 0x4a2e60
mov dword [edi + 0x30], 0x4a2e50
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x60], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x70], xmm0
mov eax, dword [esi + 0x30]
mov dword [edi + 0x80], eax
lea eax, [esp + 0x2c]
push eax
mov dword [edi + 0x84], 0x4a3280
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x40], ebp
call fcn.004b63b0
add esp, 0x1c
mov dword [esp + 0x14], 4
cmp byte [esi + 0x14], 0
je 0x4a34cb
mov eax, 0x401808
jmp 0x4a34e9
push esi
mov dword [esp + 0x48], 0x401820
call fcn.00499670
add esp, 4
test al, al
mov eax, dword [esp + 0x44]
jne 0x4a34ed
or eax, 0x200
mov dword [esp + 0x44], eax
cmp byte [esi + 0x15], 0
je 0x4a34fa
or eax, 4
mov dword [esp + 0x44], eax
cmp dword [esi + 8], 0
je 0x4a350a
push esi
push ebx
call fcn.004a5310
add esp, 8
cmp dword [esi + 0x10], 0
je 0x4a351a
push esi
push ebx
call fcn.004a58d0
add esp, 8
cmp dword [esi], 0
je 0x4a3541
push esi
push ebx
call fcn.004a5500
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a3541
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
push 0x10
mov dword [esp + 0x38], 0xa00
call fcn.00449bf0
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [eax + 8]
push ecx
push eax
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
mov ebx, eax
test ebx, ebx
je 0x4a35d8
push 0
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x3100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esp + 0x50]
movzx eax, bx
push eax
sar ebx, 0x10
movzx eax, bx
push eax
push 0x4ff680
push str.stream_tls_secure_channel
push 0
call fcn.00454e20
add esp, 0x18
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret
cmp dword [esi + 0xc], 0
je 0x4a35f2
push str.Setting_mongoc_ssl_opt_t.ca_dir_has_no_effect_when_built_against_Secure_Channel
push str.stream_tls_secure_channel
push 0
call fcn.00454e20
add esp, 0xc
push esi
call fcn.00499690
add esp, 4
test al, al
je 0x4a3613
push str.Setting_tlsDisableOCSPEndpointCheck_has_no_effect_when_built_against_Secure_Channel
push str.stream_tls_secure_channel
push 0
call fcn.00454e20
add esp, 0xc
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3c
ret
push str.base_stream
push str.mongoc_stream_tls_secure_channel_new
push 0x3a5
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push 0x4fd2bc
push str.mongoc_stream_tls_secure_channel_new
push 0x3a6
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3