Function at 0x4a4b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
mov edi, dword [edx + 0x44]
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
cmp dword [edi + 4], 0
mov esi, dword [edi]
mov dword [esp + 0x14], edi
je 0x4a50b0
cmp dword [edi + 8], 0
je 0x4a50b0
mov ecx, dword [edi + 0x20]
push ebx
lea ebx, [edi + 0x30]
cmp ecx, dword [edi + 0x28]
jne 0x4a4b9c
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
push eax
mov dword [edi + 0x20], eax
push dword [ebx]
call fcn.00449c30
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [ebx], eax
cmp esi, 3
je 0x4a4ca5
mov esi, dword [edi + 0x20]
mov ebp, dword [ebx]
sub esi, dword [edi + 0x28]
add ebp, dword [edi + 0x28]
mov ecx, dword [edx + 0x4c]
mov eax, dword [edx + 0x48]
cmp ecx, 0xffffffff
jl 0x4a4c89
jg 0x4a4bcc
cmp eax, 0x80000000
jb 0x4a4c89
test ecx, ecx
jg 0x4a4c89
jl 0x4a4be1
cmp eax, 0x7fffffff
ja 0x4a4c89
call fcn.004c3d2b
mov dword [eax], 0
mov eax, dword [esp + 0x10]
push dword [eax + 0x48]
push 0
push esi
push ebp
push dword [eax + 0x40]
call fcn.0047fef0
add esp, 0x14
test eax, eax
jg 0x4a4ca2
call fcn.004c3d2b
cmp dword [eax], 0xb
je 0x4a4c69
call fcn.004c3d2b
cmp dword [eax], 0x2733
je 0x4a4c69
call fcn.004c3d2b
cmp dword [eax], 0x2734
je 0x4a4c69
push str.failed_to_receive_handshake__SSL_TLS_connection_failed
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.failed_to_receive_handshake__SSL_TLS_connection_failed
push 4
push 2
push dword [esp + 0x2c]
call fcn.0044b5d0
add esp, 0x1c
xor al, al
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
cmp dword [edi], 3
je 0x4a4c74
mov dword [edi], 2
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
push ecx
push eax
push str.timeout_msec_value__llu_exceeds_supported_32_bit_range
push str.stream_secure_channel
push 0
call fcn.00454e20
add esp, 0x14
or eax, 0xffffffff
add dword [edi + 0x28], eax
mov esi, dword [edi + 0x28]
push esi
call fcn.004bab05
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], ecx
add esp, 4
mov dword [esp + 0x30], 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 2
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 2
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x11
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 3
test eax, eax
je 0x4a5095
push dword [edi + 0x28]
mov dword [esp + 0x2c], ebx
push dword [ebx]
push eax
call fcn.004b5e30
mov ecx, dword [edi + 8]
add esp, 0xc
lea eax, [ecx + 8]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
push 0
lea eax, [esp + 0x64]
push eax
push 0
push 0
push dword [edi + 0x38]
push dword [esp + 0x44]
push ecx
push dword [edi + 4]
call sub.Secur32.dll_InitializeSecurityContextA
push dword [esp + 0x34]
mov ebp, eax
mov dword [esp + 0x20], ebp
call fcn.004ba048
add esp, 4
cmp ebp, 0x80090318
je 0x4a4c6e
cmp ebp, 0x90320
je 0x4a4fe6
cmp ebp, 0x90312
je 0x4a4dd2
test ebp, ebp
jne 0x4a4ecb
xor ebp, ebp
lea esi, [esp + 0x5c]
cmp dword [esi + 4], 2
jne 0x4a4e59
mov edi, dword [esi]
test edi, edi
je 0x4a4e59
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x4c]
cmp ecx, 0xffffffff
jl 0x4a4e36
jg 0x4a4e03
cmp eax, 0x80000000
jb 0x4a4e36
test ecx, ecx
jl 0x4a4e10
jg 0x4a4e36
cmp eax, 0x7fffffff
ja 0x4a4e36
call fcn.004c3d2b
mov dword [eax], 0
mov eax, dword [esp + 0x10]
push dword [eax + 0x48]
push edi
push dword [esp + 0x2c]
push dword [eax + 0x40]
call fcn.00480070
add esp, 0x10
mov edi, eax
jmp 0x4a4e4f
push ecx
push eax
push str.timeout_msec_value__llu_exceeds_supported_32_bit_range
push str.stream_secure_channel
push 0
call fcn.00454e20
add esp, 0x14
or edi, 0xffffffff
mov eax, dword [esi]
cmp eax, edi
jne 0x4a4f62
mov eax, dword [esi + 8]
test eax, eax
je 0x4a4e66
push eax
call sub.Secur32.dll_FreeContextBuffer
inc ebp
add esi, 0xc
cmp ebp, 3
jl 0x4a4dd8
cmp dword [esp + 0x3c], 5
jne 0x4a4fad
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4a4fad
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x28]
cmp esi, edx
jbe 0x4a4fb8
mov ecx, dword [ebx]
mov eax, ecx
sub eax, edx
push edx
add eax, esi
push eax
push ecx
call fcn.004b5e30
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0x90312
jne 0x4a4fc7
mov ebx, dword [esp + 0x28]
jmp 0x4a4ca5
cmp ebp, 0x80092012
jg case.0x4a4eef.2146893056
je 0x4a4f47
lea eax, [ebp + 0x7ff6fd00]
cmp eax, 0x67
ja case.0x4a4eef.2146893056
movzx eax, byte [eax + 0x4a5100]
jmp dword [eax*4 + 0x4a50ec]
push str.SSL_Certification_verification_failed:_hostname_doesnt_match_certificate
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.SSL_Certification_verification_failed:_hostname_doesnt_match_certificate
jmp 0x4a4c44
push str.SSL_Certification_verification_failed:_Untrusted_root_certificate
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.SSL_Certification_verification_failed:_Untrusted_root_certificate
jmp 0x4a4c44
push str.SSL_Certification_verification_failed:_certificate_has_expired
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.SSL_Certification_verification_failed:_certificate_has_expired
jmp 0x4a4c44
push str.SSL_Certification_verification_failed:_certificate_does_not_include_revocation_check.
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.SSL_Certification_verification_failed:_certificate_does_not_include_revocation_check.
jmp 0x4a4c44
push eax
push edi
push str.failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push str.stream_secure_channel
push 0
call fcn.00454e20
lea eax, [ebp*2]
add eax, ebp
push dword [esp + eax*4 + 0x70]
push edi
push str.failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push 4
push 2
push dword [esp + 0x3c]
call fcn.0044b5d0
add esp, 0x2c
xor al, al
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
mov edi, dword [esp + 0x18]
mov dword [edi + 0x28], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0x90312
je 0x4a4c6e
test eax, eax
jne 0x4a4fd1
mov dword [edi], 4
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
mov eax, dword [edi + 0x38]
test al, al
jns 0x4a5072
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 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 + 0x10]
movzx edi, bp
push edi
sar ebp, 0x10
movzx esi, bp
push esi
push str.Failed_to_initialize_security_context__error_code:_0x_04X_04X:__s
push str.stream_secure_channel
push 0
call fcn.00454e20
push dword [esp + 0x28]
push edi
push esi
push str.Failed_to_initialize_security_context__error_code:_0x_04X_04X:__s
push 4
push 2
push dword [esp + 0x44]
call fcn.0044b5d0
add esp, 0x34
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
or eax, 0x80
mov dword [edi], 3
pop ebx
mov dword [edi + 0x38], eax
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret
push str.unable_to_allocate_memory
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.unable_to_allocate_memory
jmp 0x4a4c44
push str.required_TLS_credentials_or_context_not_provided
push str.stream_secure_channel
push 0
call fcn.00454e20
push str.required_TLS_credentials_or_context_not_provided
push 4
push 2
push ebp
call fcn.0044b5d0
mov ecx, dword [esp + 0x98]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b3f14
add esp, 0x74
ret