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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebp, ebp
mov eax, dword [esp + 0x64]
push ebx
push str.schannel:_client_wants_to_read__zu_bytes_n
push edi
mov dword [esp + 0x24], 0
lea esi, [eax + eax*8]
mov dword [esp + 0x28], edi
mov byte [esp + 0x1f], 0
call fcn.004594d0
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [eax], ebp
mov eax, dword [esp + 0x60]
cmp dword [eax + esi*8 + 0x1a4], ebp
jne 0x46ca81
push 0x1000
mov dword [eax + esi*8 + 0x19c], ebp
mov dword [eax + esi*8 + 0x194], 0x1000
call dword [0xded440]
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [ecx + esi*8 + 0x1a4], eax
test eax, eax
jne 0x46ca7f
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00459400
mov eax, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
mov dword [eax], 0x1b
or eax, 0xffffffff
pop ebx
add esp, 0x4c
ret
mov eax, ecx
mov ecx, dword [eax + esi*8 + 0x190]
mov edx, dword [eax + esi*8 + 0x198]
mov eax, ecx
sub eax, edx
cmp eax, 0x400
jb 0x46ca9e
cmp ecx, ebx
jae 0x46caea
lea eax, [edx + 0x400]
mov dword [esp + 0x14], eax
cmp eax, ebx
jae 0x46cab2
mov eax, ebx
mov dword [esp + 0x14], ebx
push eax
mov eax, dword [esp + 0x64]
push dword [eax + esi*8 + 0x1a0]
call dword [0xded448]
add esp, 8
test eax, eax
jne 0x46cad2
push str.schannel:_unable_to_re_allocate_memory
jmp 0x46ca61
mov ecx, dword [esp + 0x60]
mov dword [ecx + esi*8 + 0x1a0], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + esi*8 + 0x190], eax
jmp 0x46caee
mov ecx, dword [esp + 0x60]
push dword [ecx + esi*8 + 0x190]
push dword [ecx + esi*8 + 0x198]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push edi
call fcn.004594d0
mov edx, dword [esp + 0x70]
add esp, 0x10
mov eax, dword [edx + esi*8 + 0x190]
mov ecx, dword [edx + esi*8 + 0x198]
sub eax, ecx
je 0x46cb7f
lea ebx, [esp + 0x18]
push ebx
push eax
mov eax, dword [edx + esi*8 + 0x1a0]
add eax, ecx
push eax
mov eax, dword [esp + 0x70]
push dword [edx + eax*4 + 0x144]
call fcn.004596b0
mov ecx, dword [esp + 0x80]
add esp, 0x10
mov dword [ecx], eax
test eax, eax
je 0x46cb55
or eax, 0xffffffff
jmp 0x46cb68
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x46cb68
mov ecx, dword [esp + 0x60]
add dword [ecx + esi*8 + 0x198], eax
push eax
push str.schannel:_encrypted_data_got__zd_n
push edi
call fcn.004594d0
mov ebx, dword [esp + 0x78]
add esp, 0xc
mov edx, dword [esp + 0x60]
push dword [edx + esi*8 + 0x190]
push dword [edx + esi*8 + 0x198]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp dword [eax + esi*8 + 0x198], ebp
jbe 0x46ce62
lea esp, [esp]
test ebp, ebp
jne 0x46ce62
cmp dword [eax + esi*8 + 0x19c], ebx
jae 0x46ce62
push dword [eax + esi*8 + 0x198]
call fcn.00467f50
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], ebp
mov eax, dword [ecx + esi*8 + 0x1a0]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push ebp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push ebp
push eax
mov eax, dword [0xdf090c]
push dword [ecx + esi*8 + 0x174]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 4
mov eax, dword [eax + 0x68]
call eax
mov ebp, eax
cmp ebp, 0x80090318
je 0x46cf38
test ebp, ebp
je 0x46cc65
cmp ebp, 0x90321
je 0x46cc65
cmp ebp, 0x90317
jne 0x46cdf6
cmp dword [esp + 0x3c], 1
jne 0x46cd67
push dword [esp + 0x38]
push str.schannel:_decrypted_data_length:__lu_n
push edi
call fcn.004594d0
mov ebx, dword [esp + 0x44]
add esp, 0xc
mov ecx, ebx
cmp ebx, 0x400
ja 0x46cc95
mov ecx, 0x400
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x60]
mov edx, dword [eax + esi*8 + 0x194]
mov eax, edx
sub eax, dword [edi + esi*8 + 0x19c]
mov edi, dword [esp + 0x1c]
cmp eax, ecx
mov eax, dword [esp + 0x6c]
jb 0x46ccbd
cmp edx, eax
jae 0x46cd05
mov ebx, dword [esp + 0x60]
mov ebx, dword [ebx + esi*8 + 0x19c]
add ebx, ecx
cmp ebx, eax
jae 0x46ccd0
mov ebx, eax
mov eax, dword [esp + 0x60]
push ebx
push dword [eax + esi*8 + 0x1a4]
call dword [0xded448]
add esp, 8
test eax, eax
je 0x46cacb
mov ecx, dword [esp + 0x60]
mov dword [ecx + esi*8 + 0x194], ebx
mov ebx, dword [esp + 0x38]
mov dword [ecx + esi*8 + 0x1a4], eax
jmp 0x46cd09
mov ecx, dword [esp + 0x60]
test ebx, ebx
je 0x46cd34
mov eax, dword [ecx + esi*8 + 0x1a4]
add eax, dword [ecx + esi*8 + 0x19c]
push ebx
push dword [esp + 0x44]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x6c]
add esp, 0xc
add dword [eax + esi*8 + 0x19c], ebx
push ebx
push str.schannel:_decrypted_data_added:__zu_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x6c]
push dword [eax + esi*8 + 0x194]
push dword [eax + esi*8 + 0x19c]
push str.schannel:_decrypted_data_cached:_offset__zu_length__zu_n
push edi
call fcn.004594d0
mov ebx, dword [esp + 0x88]
add esp, 0x1c
cmp dword [esp + 0x54], 5
jne 0x46cde7
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46cde7
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov edx, dword [esp + 0x50]
cmp dword [eax + esi*8 + 0x198], edx
jbe 0x46cdc9
mov ecx, dword [eax + esi*8 + 0x1a0]
mov eax, ecx
push edx
sub eax, edx
mov edx, dword [esp + 0x64]
add eax, dword [edx + esi*8 + 0x198]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, dword [esp + 0x50]
mov dword [ecx + esi*8 + 0x198], eax
mov eax, ecx
push dword [eax + esi*8 + 0x190]
push dword [eax + esi*8 + 0x198]
push str.schannel:_encrypted_data_cached:_offset__zu_length__zu_n
push edi
call fcn.004594d0
add esp, 0x10
jmp 0x46cdf6
mov eax, dword [esp + 0x60]
mov dword [eax + esi*8 + 0x198], 0
cmp ebp, 0x90321
jne 0x46ce50
push str.schannel:_remote_party_requests_SSL_TLS_renegotiation_n
push edi
call fcn.004594d0
push str.schannel:_renegotiating_SSL_TLS_connection_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x23]
push ecx
push 0
push dword [esp + 0x7c]
mov dword [eax + esi*8 + 0x16c], 1
push eax
mov dword [eax + esi*8 + 0x18c], 3
call fcn.0046be80
add esp, 0x20
test eax, eax
je 0x46cf0c
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
cmp dword [eax + esi*8 + 0x198], 0
ja 0x46cbb0
push dword [eax + esi*8 + 0x194]
push dword [eax + esi*8 + 0x19c]
push str.schannel:_decrypted_data_buffer:_offset__zu_length__zu_n
push edi
call fcn.004594d0
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, dword [ecx + esi*8 + 0x19c]
cmp ebx, eax
jb 0x46ce8f
mov ebx, eax
test ebx, ebx
je 0x46cf5b
push ebx
push dword [ecx + esi*8 + 0x1a4]
push dword [esp + 0x70]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + esi*8 + 0x1a4]
mov eax, dword [eax + esi*8 + 0x19c]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x78]
push ebx
push str.schannel:_decrypted_data_returned__zd_n
push edi
sub dword [eax + esi*8 + 0x19c], ebx
call fcn.004594d0
mov eax, dword [esp + 0x84]
push dword [eax + esi*8 + 0x194]
push dword [eax + esi*8 + 0x19c]
push str.schannel:_decrypted_data_buffer:_offset__zu_length__zu_n
push edi
call fcn.004594d0
add esp, 0x34
test ebx, ebx
jg 0x46cf80
mov ecx, dword [esp + 0x60]
jmp 0x46cf5d
push str.schannel:_SSL_TLS_connection_renegotiated_n
push edi
call fcn.004594d0
push dword [esp + 0x78]
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.0046c9e0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push str.schannel:_failed_to_decrypt_data__need_more_data_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
mov dword [eax], 0x51
or eax, 0xffffffff
pop ebx
add esp, 0x4c
ret
xor ebx, ebx
cmp ebp, 0x90317
je 0x46cfc1
test ebp, ebp
jne 0x46cf7e
cmp dword [ecx + esi*8 + 0x198], ebp
jbe 0x46cf7e
mov eax, dword [ecx + esi*8 + 0x1a0]
cmp byte [eax], 0x15
je 0x46cfc1
test ebx, ebx
jns 0x46cfb7
test ebp, ebp
je 0x46cfb7
push ebp
push dword [esp + 0x64]
call fcn.0046d700
push eax
push str.schannel:_failed_to_read_data_from_server:__s_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x84]
add esp, 0x14
pop edi
pop esi
pop ebp
mov dword [eax], 0x38
or eax, 0xffffffff
pop ebx
add esp, 0x4c
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x4c
ret
push str.schannel:_server_closed_the_connection_n
push edi
call fcn.004594d0
mov eax, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
mov dword [eax], 0
xor eax, eax
pop ebx
add esp, 0x4c
ret