Function at 0x4a5300
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 + 0x174], 3
lea esi, [ebx + ecx*8 + 0x150]
movzx ecx, word [ebx + 0x9c]
setne dl
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x80]
push edx
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push eax
call fcn.0049f850
xor ebp, ebp
add esp, 0x10
cmp dword [esi + 0x38], ebp
jne 0x4a5397
push 0x1000
mov dword [esi + 0x30], ebp
mov dword [esi + 0x28], 0x1000
call dword [0x583914]
add esp, 4
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x4a5397
push str.schannel:_unable_to_allocate_memory
mov eax, dword [esp + 0x10]
push eax
call fcn.0049f8e0
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 0x4a53c8
mov edx, dword [esi + 0x38]
add eax, eax
push eax
push edx
mov dword [esi + 0x28], eax
call dword [0x58391c]
add esp, 8
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x4a53c8
push str.schannel:_unable_to_re_allocate_memory
jmp 0x4a537e
cmp dword [esp + 0x10], ebp
je 0x4a5412
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 + 0x130]
add ecx, eax
push ecx
push edx
call fcn.0049f540
add esp, 0x10
cmp eax, 0x51
je 0x4a5610
cmp eax, ebp
jne 0x4a5627
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4a5627
add dword [esi + 0x30], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0xc]
push eax
push ecx
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push edx
call fcn.0049f850
mov eax, dword [esi + 0x30]
push eax
call fcn.004bb010
mov ecx, dword [esi + 0x30]
push ecx
mov edi, eax
call dword [0x583914]
lea edx, [esp + 0x4c]
mov ecx, 2
mov dword [esp + 0x48], edx
add esp, 0x18
lea edx, [esp + 0x4c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x11
mov dword [esp + 0x60], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
cmp eax, ebp
je 0x4a5379
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.00521434
mov ecx, dword [ebx + 0x80]
add esp, 0xc
cmp ecx, ebp
je 0x4a538b
mov eax, dword [esi + 0xc]
lea edx, [eax + 8]
push edx
lea edx, [esi + 0x44]
push edx
lea edx, [esp + 0x24]
push edx
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi + 0x40]
push ebp
push ebp
push edx
push ecx
mov ecx, dword [0x586c6c]
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
cmp eax, ebp
je 0x4a550b
push eax
call dword [0x583918]
add esp, 4
mov dword [esp + 0x3c], ebp
cmp edi, 0x80090318
je 0x4a5645
cmp edi, 0x90312
je 0x4a5527
cmp edi, ebp
jne 0x4a5656
lea edi, [esp + 0x4c]
jmp 0x4a5530
cmp dword [edi + 4], 2
jne 0x4a5581
mov eax, dword [edi]
test eax, eax
je 0x4a5581
push eax
mov eax, dword [esp + 0x10]
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push eax
call fcn.0049f850
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 + 0x130]
push eax
push edx
push ebx
call fcn.0049fc50
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x4a56aa
cmp dword [edi], eax
jne 0x4a56aa
mov eax, dword [edi + 8]
test eax, eax
je 0x4a5593
push eax
mov eax, dword [0x586c6c]
mov ecx, dword [eax + 0x40]
call ecx
inc ebp
add edi, 0xc
cmp ebp, 2
jl 0x4a5530
cmp dword [esp + 0x44], 5
jne 0x4a56d2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a56d2
mov edx, dword [esp + 0xc]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edx
call fcn.0049f850
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp eax, edx
jbe 0x4a56d9
mov ecx, dword [esi + 0x38]
sub eax, edx
push edx
add eax, ecx
push eax
push ecx
call dword [0x545454]
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x10], 0x90312
mov dword [esi + 0x30], eax
jne 0x4a56f3
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], 0
xor ebp, ebp
jmp 0x4a53c8
cmp dword [esi + 0x24], 3
je 0x4a561d
mov dword [esi + 0x24], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
jmp 0x4a5706
mov edx, dword [esp + 0xc]
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edx
call fcn.0049f8e0
add esp, 8
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
mov dword [esi + 0x24], 2
push str.schannel:_received_incomplete_message__need_more_data_n
jmp 0x4a5706
cmp edi, 0x80090322
jne 0x4a5684
push edi
push ebx
call fcn.004958e0
mov edx, dword [esp + 0x14]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.0049f8e0
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
push edi
push ebx
call fcn.004958e0
push eax
mov eax, dword [esp + 0x18]
push str.schannel:_next_InitializeSecurityContext_failed:__s
push eax
call fcn.0049f8e0
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.0049f8e0
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 0x4a56f3
pop edi
mov dword [esi + 0x24], 2
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp dword [esp + 0x10], 0
jne 0x4a5713
mov dword [esi + 0x24], 4
push str.schannel:_SSL_TLS_handshake_complete_n
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0049f850
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret