Function at 0x44cee0
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x596c60]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp esi, edi
jne 0x44cf1c
push str._ssl_complete_client_handshake
push str._s__:_Invalid_argument
push edi
call fcn.00449de0
add esp, 0xc
mov dword [ebp - 0x408], 0x80090304
jmp 0x44d1d1
push str.entering_handshake_loop_n
push 1
call fcn.00477440
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x10084]
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [esi + 0x10094]
push edi
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov dword [ebp - 0x40c], edi
call fcn.004522c0
add esp, 0x20
cmp dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], eax
je 0x44d1d1
cmp eax, edi
je 0x44cf74
mov dword [esi + 0x1008c], edi
jmp 0x44d1d1
push ebx
push str.Handshake_was_successful_n
push 1
mov dword [esi + 0x1008c], 2
call fcn.00477440
mov edx, dword [esi]
push edx
call fcn.00450940
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x44d1b5
lea edi, [esi + 0x14]
push edi
push 4
push ebx
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
mov dword [ebp - 0x408], eax
je 0x44d002
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.0050c510
mov edx, dword [ebp - 0x408]
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push edx
call fcn.00470ef0
lea eax, [ebp - 0x404]
push eax
push str.Error_reading_SECPKG_ATTR_STREAM_SIZES:__s
push esi
call fcn.00449de0
add esp, 0x24
jmp 0x44d1d0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [edi]
push ecx
push edx
push eax
push str.Header:__d__Trailer:__d__MaxMessage:__d_n
push 1
call fcn.00477440
mov edi, dword [esi + 0x1c]
add edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x4c]
add edi, dword [esi + 0x14]
push ecx
call fcn.00443940
add esp, 0x18
cmp eax, 1
je 0x44d04d
push str.Error_reseting_io_buffer
push esi
call fcn.00449de0
mov dword [ebp - 0x408], 0x80090304
jmp 0x44d1cd
push edi
call fcn.0050828d
add esp, 4
mov dword [esi + 0x10050], eax
lea eax, [esi + 0x28]
push eax
push 0x53
push ebx
call sub.Secur32.dll_QueryContextAttributesA
mov edi, eax
test edi, edi
mov dword [ebp - 0x408], edi
je 0x44d0e3
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call fcn.0050c510
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.00470ef0
lea ecx, [ebp - 0x404]
push ecx
push str.Error_querying_remote_certificate:__s_n
push 1
call fcn.00477440
add esp, 0x24
test byte [esi + 0x1009c], 3
jne 0x44d0c9
push str._Ignoring_certificate_error__n
jmp 0x44d1c6
lea edx, [ebp - 0x404]
push edx
push str.could_not_retrieve_server_certificate:__s
push esi
call fcn.00449de0
add esp, 0xc
jmp 0x44d1d0
mov ebx, esi
call fcn.0044a940
test eax, eax
jne 0x44d120
test byte [esi + 0x1009c], 1
je 0x44d111
push str.Could_not_authenticate_server
push esi
call fcn.00449de0
mov dword [ebp - 0x408], 0x80090304
jmp 0x44d1cd
push str._Ignoring_server_certificate_verification_error__n
push 1
call fcn.00477440
add esp, 8
push 0x200
call fcn.0050828d
mov edi, eax
add esp, 4
test edi, edi
jne 0x44d14d
push str.Out_of_memory_allocating_common_name
push esi
call fcn.00449de0
mov dword [ebp - 0x408], 0x80090304
jmp 0x44d1cd
mov eax, dword [esi + 0x28]
push 0x200
push edi
push str.2.5.4.3
push 0
push 3
push eax
mov dword [esi + 0x10088], edi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
test eax, eax
je 0x44d17f
mov ebx, dword [esi + 0x10084]
call fcn.0044c570
test eax, eax
jne 0x44d1d0
mov ecx, dword [esi + 0x10084]
push ecx
push edi
push str.Common_name_mismatch:__s____s_n
push 1
call fcn.00477440
add esp, 0x10
test byte [esi + 0x1009c], 2
je 0x44d1c1
mov edx, dword [esi + 0x10084]
push edx
push edi
push str.Common_name_mismatch:__s____s_n
push esi
call fcn.00449de0
add esp, 0x10
mov dword [ebp - 0x408], 0x80090304
jmp 0x44d1d0
push str._CN_mismatch_ignored__n
push 1
call fcn.00477440
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
mov dword [esi + 0x10], eax
pop edi
call fcn.005072fd
mov esp, ebp
pop ebp
ret