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

Disassembly:
sub esp, 0x58
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
or eax, 0xffffffff
lea ecx, [edi + edi*8]
xor edx, edx
cmp dword [ebx + ecx*8 + 0x1a0], 3
lea esi, [ebx + ecx*8 + 0x17c]
mov ecx, dword [ebx + 0xb4]
setne dl
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov ebp, edx
mov edx, dword [ebx + 0x98]
push edx
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push eax
call fcn.0045a960
add esp, 0x10
cmp dword [esi + 8], 0
je 0x45fa41
cmp dword [esi + 0xc], 0
je 0x45fa41
cmp dword [esi + 0x38], 0
jne 0x45f77b
push 0x1000
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0x1000
call dword [0x4a3680]
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
jne 0x45f77b
push str.schannel:_unable_to_allocate_memory
mov eax, dword [esp + 0x10]
push eax
call fcn.0045a9f0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebp
add esp, 0x58
ret
mov eax, dword [esi + 0x28]
mov ecx, eax
sub ecx, dword [esi + 0x30]
cmp ecx, 0x400
jae 0x45f7b0
mov edx, dword [esi + 0x38]
add eax, eax
push eax
push edx
mov dword [esi + 0x28], eax
call dword [0x4a3688]
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x45f7b0
push str.schannel:_unable_to_re_allocate_memory
jmp 0x45f762
test ebp, ebp
je 0x45f7f8
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x38]
sub edx, eax
push edx
mov edx, dword [ebx + edi*4 + 0x154]
add ecx, eax
push ecx
push edx
call fcn.0045a6a0
add esp, 0x10
cmp eax, 0x51
je 0x45fa07
test eax, eax
jne 0x45fa2f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45fa2f
add dword [esi + 0x30], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov ebp, dword [esp + 0xc]
push eax
push ecx
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebp
call fcn.0045a960
mov edx, dword [esi + 0x30]
push edx
call fcn.0045ea00
mov edi, eax
mov eax, dword [esi + 0x30]
push eax
call dword [0x4a3680]
push eax
mov ecx, edi
mov edx, 2
lea eax, [esp + 0x50]
call fcn.0045f300
push 0
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x60]
call fcn.0045f300
mov edx, 2
lea ecx, [esp + 0x54]
lea eax, [esp + 0x48]
call fcn.0045f310
push 0
xor ecx, ecx
lea eax, [esp + 0x70]
call fcn.0045f300
xor ecx, ecx
push 0
lea edx, [ecx + 0x11]
lea eax, [esp + 0x80]
call fcn.0045f300
add esp, 0x28
mov edx, 2
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x1c]
call fcn.0045f310
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45fa4d
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.00433540
mov ecx, dword [ebx + 0x98]
add esp, 0xc
test ecx, ecx
je 0x45f76f
mov eax, dword [esi + 0xc]
lea edx, [eax + 8]
push edx
lea edx, [esi + 0x44]
push edx
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi + 0x40]
push 0
push 0
push edx
push ecx
mov ecx, dword [0x4a5a54]
mov edx, dword [ecx + 0x18]
push eax
mov eax, dword [esi + 8]
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
test eax, eax
je 0x45f908
push eax
call dword [0x4a3684]
add esp, 4
mov dword [esp + 0x3c], 0
cmp edi, 0x80090318
je 0x45fa67
cmp edi, 0x90312
je 0x45f924
test edi, edi
jne 0x45fa85
xor ebp, ebp
lea edi, [esp + 0x4c]
lea ebx, [ebx]
cmp dword [edi + 4], 2
jne 0x45f981
mov eax, dword [edi]
test eax, eax
jbe 0x45f981
push eax
mov eax, dword [esp + 0x10]
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push eax
call fcn.0045a960
mov edx, dword [edi]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [ebx + ecx*4 + 0x154]
push eax
push edx
push ebx
call fcn.0045ac00
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x45fad1
cmp dword [edi], eax
jne 0x45fad1
mov eax, dword [edi + 8]
test eax, eax
je 0x45f993
push eax
mov eax, dword [0x4a5a54]
mov ecx, dword [eax + 0x40]
call ecx
inc ebp
add edi, 0xc
cmp ebp, 2
jl 0x45f930
cmp dword [esp + 0x44], 5
jne 0x45faf9
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x45faf9
mov edx, dword [esp + 0xc]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edx
call fcn.0045a960
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp eax, edx
jbe 0x45fb00
mov ecx, dword [esi + 0x38]
sub eax, edx
push edx
add eax, ecx
push eax
push ecx
call fcn.00433b80
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x10], 0x90312
mov dword [esi + 0x30], eax
jne 0x45fb1a
mov edi, dword [esp + 0x68]
xor ebp, ebp
jmp 0x45f7b0
cmp dword [esi + 0x24], 3
je 0x45fa14
mov dword [esi + 0x24], 2
mov ecx, dword [esp + 0xc]
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push ecx
call fcn.0045a960
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
mov edx, dword [esp + 0xc]
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edx
call fcn.0045a9f0
add esp, 8
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
push str.schannel:_unable_to_allocate_memory
push ebp
call fcn.0045a9f0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebp
add esp, 0x58
ret
push str.schannel:_received_incomplete_message__need_more_data_n
push ebp
mov dword [esi + 0x24], 2
call fcn.0045a960
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp edi, 0x80090322
jne 0x45faaf
push edi
push ebx
call fcn.0044f8e0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push ebp
call fcn.0045a9f0
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
push edi
push ebx
call fcn.0044f8e0
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ebp
call fcn.0045a9f0
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
lea ecx, [ebp + ebp*2]
mov edx, dword [esp + ecx*4 + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push eax
call fcn.0045a9f0
add esp, 0x10
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
mov dword [esi + 0x30], 0
cmp dword [esp + 0x10], 0x90312
jne 0x45fb1a
pop edi
mov dword [esi + 0x24], 2
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp dword [esp + 0x10], 0
jne 0x45fb3a
mov ecx, dword [esp + 0xc]
push str.schannel:_SSL_TLS_handshake_complete_n
push ecx
mov dword [esi + 0x24], 4
call fcn.0045a960
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret