Function at 0x494080
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.00480b70
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 0x494121
push 0x1000
mov dword [eax + esi*8 + 0x19c], ebp
mov dword [eax + esi*8 + 0x194], 0x1000
call dword [0x4fc0f8]
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [ecx + esi*8 + 0x1a4], eax
test eax, eax
jne 0x49411f
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00480aa0
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 0x49413e
cmp ecx, ebx
jae 0x49418a
lea eax, [edx + 0x400]
mov dword [esp + 0x14], eax
cmp eax, ebx
jae 0x494152
mov eax, ebx
mov dword [esp + 0x14], ebx
push eax
mov eax, dword [esp + 0x64]
push dword [eax + esi*8 + 0x1a0]
call dword [0x4fc100]
add esp, 8
test eax, eax
jne 0x494172
push str.schannel:_unable_to_re_allocate_memory
jmp 0x494101
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 0x49418e
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.00480b70
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 0x49421f
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.00480d50
mov ecx, dword [esp + 0x80]
add esp, 0x10
mov dword [ecx], eax
test eax, eax
je 0x4941f5
or eax, 0xffffffff
jmp 0x494208
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x494208
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.00480b70
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.00480b70
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp dword [eax + esi*8 + 0x198], ebp
jbe 0x494502
lea esp, [esp]
test ebp, ebp
jne 0x494502
cmp dword [eax + esi*8 + 0x19c], ebx
jae 0x494502
push dword [eax + esi*8 + 0x198]
call fcn.0048f5f0
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 [0x5001f4]
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 0x4945d8
test ebp, ebp
je 0x494305
cmp ebp, 0x90321
je 0x494305
cmp ebp, 0x90317
jne 0x494496
cmp dword [esp + 0x3c], 1
jne 0x494407
push dword [esp + 0x38]
push str.schannel:_decrypted_data_length:__lu_n
push edi
call fcn.00480b70
mov ebx, dword [esp + 0x44]
add esp, 0xc
mov ecx, ebx
cmp ebx, 0x400
ja 0x494335
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 0x49435d
cmp edx, eax
jae 0x4943a5
mov ebx, dword [esp + 0x60]
mov ebx, dword [ebx + esi*8 + 0x19c]
add ebx, ecx
cmp ebx, eax
jae 0x494370
mov ebx, eax
mov eax, dword [esp + 0x60]
push ebx
push dword [eax + esi*8 + 0x1a4]
call dword [0x4fc100]
add esp, 8
test eax, eax
je 0x49416b
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 0x4943a9
mov ecx, dword [esp + 0x60]
test ebx, ebx
je 0x4943d4
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.00480b70
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.00480b70
mov ebx, dword [esp + 0x88]
add esp, 0x1c
cmp dword [esp + 0x54], 5
jne 0x494487
mov eax, dword [esp + 0x50]
test eax, eax
je 0x494487
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edi
call fcn.00480b70
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov edx, dword [esp + 0x50]
cmp dword [eax + esi*8 + 0x198], edx
jbe 0x494469
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.00480b70
add esp, 0x10
jmp 0x494496
mov eax, dword [esp + 0x60]
mov dword [eax + esi*8 + 0x198], 0
cmp ebp, 0x90321
jne 0x4944f0
push str.schannel:_remote_party_requests_SSL_TLS_renegotiation_n
push edi
call fcn.00480b70
push str.schannel:_renegotiating_SSL_TLS_connection_n
push edi
call fcn.00480b70
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.00493520
add esp, 0x20
test eax, eax
je 0x4945ac
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
cmp dword [eax + esi*8 + 0x198], 0
ja 0x494250
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.00480b70
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, dword [ecx + esi*8 + 0x19c]
cmp ebx, eax
jb 0x49452f
mov ebx, eax
test ebx, ebx
je 0x4945fb
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.00480b70
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.00480b70
add esp, 0x34
test ebx, ebx
jg 0x494620
mov ecx, dword [esp + 0x60]
jmp 0x4945fd
push str.schannel:_SSL_TLS_connection_renegotiated_n
push edi
call fcn.00480b70
push dword [esp + 0x78]
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.00494080
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.00480b70
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 0x494661
test ebp, ebp
jne 0x49461e
cmp dword [ecx + esi*8 + 0x198], ebp
jbe 0x49461e
mov eax, dword [ecx + esi*8 + 0x1a0]
cmp byte [eax], 0x15
je 0x494661
test ebx, ebx
jns 0x494657
test ebp, ebp
je 0x494657
push ebp
push dword [esp + 0x64]
call fcn.00494da0
push eax
push str.schannel:_failed_to_read_data_from_server:__s_n
push edi
call fcn.00480b70
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.00480b70
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