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

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x101169b9
push str.base_stream
push str.mongoc_stream_tls_new_with_hostname
push 0xd2
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_stream_tls.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
jmp fcn.100b1525
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x101169cb
cmp byte [eax + 0x14], 0
je 0x101169cf
mov byte [eax + 0x15], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
jmp 0x1012db80
sub esp, 0x3c
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], 0
test ebp, ebp
je 0x1012dded
push esi
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1012de1e
push ebx
push edi
push 0x48
call fcn.100d2910
push 0x4400
mov ebx, eax
call fcn.100d28d0
push 0x4400
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x24], 0x4400
call fcn.100d28d0
push 0x88
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], 0x4400
call fcn.100d2910
mov edi, eax
push 0x38
push 0
mov dword [edi], 5
mov dword [edi + 4], 0x1012d040
mov dword [edi + 0x28], 0x1012d1f0
mov dword [edi + 8], 0x1012ce40
mov dword [edi + 0xc], 0x1012d200
mov dword [edi + 0x10], 0x1012d7b0
mov dword [edi + 0x14], 0x1012d280
mov dword [edi + 0x18], 0x1012d5b0
mov dword [edi + 0x1c], 0x1012d240
mov dword [edi + 0x20], 0x1012cdf0
mov dword [edi + 0x2c], 0x1012d620
mov dword [edi + 0x30], 0x1012d610
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], 0x1012da50
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x40], ebp
call fcn.100a13a0
add esp, 0x1c
mov dword [esp + 0x14], 4
cmp byte [esi + 0x14], 0
je 0x1012dc9b
mov eax, 0x401808
jmp 0x1012dcb9
push esi
mov dword [esp + 0x48], 0x401820
call fcn.101238e0
add esp, 4
test al, al
mov eax, dword [esp + 0x44]
jne 0x1012dcbd
or eax, 0x200
mov dword [esp + 0x44], eax
cmp byte [esi + 0x15], 0
je 0x1012dcca
or eax, 4
mov dword [esp + 0x44], eax
cmp dword [esi + 8], 0
je 0x1012dcda
push esi
push ebx
call fcn.1012fad0
add esp, 8
cmp dword [esi + 0x10], 0
je 0x1012dcea
push esi
push ebx
call fcn.10130090
add esp, 8
cmp dword [esi], 0
je 0x1012dd11
push esi
push ebx
call fcn.1012fcc0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1012dd11
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
push 0x10
mov dword [esp + 0x38], 0xa00
call fcn.100d2910
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 0x1012dda8
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 0x10209e00
push str.stream_tls_secure_channel
push 0
call fcn.100db4d0
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 0x1012ddc2
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.100db4d0
add esp, 0xc
push esi
call fcn.10123900
add esp, 4
test al, al
je 0x1012dde3
push str.Setting_tlsDisableOCSPEndpointCheck_has_no_effect_when_built_against_Secure_Channel
push str.stream_tls_secure_channel
push 0
call fcn.100db4d0
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.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
push 0x101ab43c
push str.mongoc_stream_tls_secure_channel_new
push 0x3a6
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
int3