Function at 0x4eafd0
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 dword [esp + 0x14], 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.004e4180
xor ebp, ebp
add esp, 0x10
cmp dword [esi + 8], ebp
je 0x4eb32c
cmp dword [esi + 0xc], ebp
je 0x4eb32c
cmp dword [esi + 0x38], ebp
jne 0x4eb078
push 0x1000
mov dword [esi + 0x30], ebp
mov dword [esi + 0x28], 0x1000
call dword [0x5ba01c]
add esp, 4
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x4eb078
push str.schannel:_unable_to_allocate_memory
mov eax, dword [esp + 0x10]
push eax
call fcn.004e4210
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 0x4eb0b0
mov edx, dword [esi + 0x38]
add eax, eax
push eax
push edx
mov dword [esi + 0x28], eax
call dword [0x5ba024]
add esp, 8
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x4eb0b0
push str.schannel:_unable_to_re_allocate_memory
jmp 0x4eb05f
cmp dword [esp + 0x10], ebp
je 0x4eb0fa
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.004e3e80
add esp, 0x10
cmp eax, 0x51
je 0x4eb2f2
cmp eax, ebp
jne 0x4eb31a
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4eb31a
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.004e4180
mov eax, dword [esi + 0x30]
push eax
call fcn.004e7710
mov ecx, dword [esi + 0x30]
push ecx
mov edi, eax
call dword [0x5ba01c]
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 0x4eb05a
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.00530190
mov ecx, dword [ebx + 0x98]
add esp, 0xc
cmp ecx, ebp
je 0x4eb06c
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 [0x5c27a0]
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 0x4eb1f3
push eax
call dword [0x5ba020]
add esp, 4
mov dword [esp + 0x3c], ebp
cmp edi, 0x80090318
je 0x4eb338
cmp edi, 0x90312
je 0x4eb20f
cmp edi, ebp
jne 0x4eb35a
lea edi, [esp + 0x4c]
cmp dword [edi + 4], 2
jne 0x4eb264
mov eax, dword [edi]
test eax, eax
je 0x4eb264
push eax
mov eax, dword [esp + 0x10]
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push eax
call fcn.004e4180
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.004e4580
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x4eb3ae
cmp dword [edi], eax
jne 0x4eb3ae
mov eax, dword [edi + 8]
test eax, eax
je 0x4eb276
push eax
mov eax, dword [0x5c27a0]
mov ecx, dword [eax + 0x40]
call ecx
inc ebp
add edi, 0xc
cmp ebp, 2
jl 0x4eb213
cmp dword [esp + 0x44], 5
jne 0x4eb3d6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4eb3d6
mov edx, dword [esp + 0xc]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edx
call fcn.004e4180
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp eax, edx
jbe 0x4eb3dd
mov ecx, dword [esi + 0x38]
sub eax, edx
push edx
add eax, ecx
push eax
push ecx
call fcn.0052b9c0
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x10], 0x90312
mov dword [esi + 0x30], eax
jne 0x4eb3f7
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], 0
xor ebp, ebp
jmp 0x4eb0b0
cmp dword [esi + 0x24], 3
je 0x4eb2ff
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.004e4180
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.004e4210
add esp, 8
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
mov ecx, dword [esp + 0xc]
push str.schannel:_received_incomplete_message__need_more_data_n
push ecx
mov dword [esi + 0x24], 2
call fcn.004e4180
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp edi, 0x80090322
jne 0x4eb388
push edi
push ebx
call fcn.004e9b80
mov edx, dword [esp + 0x14]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.004e4210
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
push edi
push ebx
call fcn.004e9b80
push eax
mov eax, dword [esp + 0x18]
push str.schannel:_next_InitializeSecurityContext_failed:__s
push eax
call fcn.004e4210
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.004e4210
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 0x4eb3f7
pop edi
mov dword [esi + 0x24], 2
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp dword [esp + 0x10], 0
jne 0x4eb417
mov ecx, dword [esp + 0xc]
push str.schannel:_SSL_TLS_handshake_complete_n
push ecx
mov dword [esi + 0x24], 4
call fcn.004e4180
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret