Function at 0x4cafe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ecx]
push esi
mov dword [ebp - 0x50], eax
lea esi, [edx + edx*8]
or eax, 0xffffffff
mov dword [ebp - 0x3c], ecx
push edi
mov dword [ebp - 0x44], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push eax
push str.schannel:_client_wants_to_read__zu_bytes_n
push ebx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], edi
call fcn.00494040
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebp - 0x3c]
cmp dword [eax + esi*8 + 0x1b8], edi
jne 0x4cb080
push 0x1000
mov dword [eax + esi*8 + 0x1b0], edi
mov dword [eax + esi*8 + 0x1a8], 0x1000
call dword [0x5c1c74]
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ecx + esi*8 + 0x1b8], eax
test eax, eax
jne 0x4cb07a
push str.schannel:_unable_to_allocate_memory
jmp 0x4cb0cf
mov eax, ecx
nop dword [eax]
mov ecx, dword [eax + esi*8 + 0x1a4]
mov edx, dword [eax + esi*8 + 0x1ac]
mov eax, ecx
sub eax, edx
cmp eax, 0x400
jb 0x4cb09e
cmp ecx, dword [ebp + 0x14]
jae 0x4cb0f5
lea eax, [ecx + ecx]
mov ecx, dword [ebp - 0x3c]
push eax
push dword [ecx + esi*8 + 0x1b4]
mov dword [ecx + esi*8 + 0x1a4], eax
call dword [0x5c1c78]
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ecx + esi*8 + 0x1b4], eax
test eax, eax
jne 0x4cb07a
push str.schannel:_unable_to_re_allocate_memory
push ebx
call fcn.00494100
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x1b
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push ecx
push edx
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.00494040
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
mov eax, dword [ecx + esi*8 + 0x1a4]
mov edx, dword [ecx + esi*8 + 0x1ac]
mov ecx, eax
sub ecx, edx
je 0x4cb19a
mov eax, dword [ebp - 0x3c]
push 0
push ecx
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + esi*8 + 0x1b4]
add eax, edx
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + ecx*4 + 0x154]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp ecx, 0xffffffff
jne 0x4cb16e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov ecx, 0x38
mov eax, dword [ebp - 0x40]
mov edx, 0x51
cmove ecx, edx
mov dword [eax], ecx
or ecx, 0xffffffff
mov dword [ebp - 0x44], ecx
jmp 0x4cb181
mov eax, dword [ebp - 0x40]
mov dword [eax], edi
test ecx, ecx
jle 0x4cb181
mov eax, dword [ebp - 0x3c]
add dword [eax + esi*8 + 0x1ac], ecx
push ecx
push str.schannel:_encrypted_data_got__zd_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov eax, dword [eax + esi*8 + 0x1a4]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + esi*8 + 0x1ac]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov eax, dword [eax + esi*8 + 0x1ac]
test eax, eax
je 0x4cb43f
test edi, edi
mov edi, dword [ebp - 0x3c]
jne 0x4cb442
mov ecx, dword [ebp + 0x14]
cmp dword [edi + esi*8 + 0x1b0], ecx
jae 0x4cb442
mov dword [ebp - 0x38], eax
mov eax, dword [edi + esi*8 + 0x1b4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push 0
push eax
mov eax, dword [0x5c82cc]
push dword [edi + esi*8 + 0x188]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 4
mov eax, dword [eax + 0x68]
call eax
mov ecx, eax
mov dword [ebp - 0x48], ecx
cmp ecx, 0x80090318
je 0x4cb51b
test ecx, ecx
je 0x4cb289
cmp ecx, 0x90321
je 0x4cb289
cmp ecx, 0x90317
jne 0x4cb3d3
cmp dword [ebp - 0x28], 1
jne 0x4cb357
push dword [ebp - 0x2c]
push str.schannel:_decrypted_data_length:__lu_n
push ebx
call fcn.00494040
mov edi, 0x400
add esp, 0xc
cmp dword [ebp - 0x2c], edi
cmova edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + esi*8 + 0x1a8]
mov edx, dword [eax + esi*8 + 0x1b0]
mov eax, ecx
sub eax, edx
cmp eax, edi
jb 0x4cb2ce
cmp ecx, dword [ebp + 0x14]
jae 0x4cb2ff
lea eax, [ecx + ecx]
mov ecx, dword [ebp - 0x3c]
push eax
push dword [ecx + esi*8 + 0x1b8]
mov dword [ecx + esi*8 + 0x1a8], eax
call dword [0x5c1c78]
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ecx + esi*8 + 0x1b8], eax
test eax, eax
jne 0x4cb2b0
jmp 0x4cb0ca
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4cb329
mov eax, dword [ebp - 0x3c]
push edi
push dword [ebp - 0x24]
mov eax, dword [eax + esi*8 + 0x1b8]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add dword [eax + esi*8 + 0x1b0], edi
push edi
push str.schannel:_decrypted_data_added:__zu_n
push ebx
call fcn.00494040
mov edi, dword [ebp - 0x3c]
add esp, 0xc
push dword [edi + esi*8 + 0x1a8]
push dword [edi + esi*8 + 0x1b0]
push str.schannel:_decrypted_data_cached:_offset__zu_length__zu_n
push ebx
call fcn.00494040
add esp, 0x10
cmp dword [ebp - 0x10], 5
jne 0x4cb3c8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cb3c8
push eax
push str.schannel:_encrypted_data_length:__lu_n
push ebx
call fcn.00494040
mov edx, dword [edi + esi*8 + 0x1ac]
add esp, 0xc
mov edi, dword [ebp - 0x14]
cmp edx, edi
jbe 0x4cb3ad
mov eax, dword [ebp - 0x3c]
push edi
mov ecx, dword [eax + esi*8 + 0x1b4]
mov eax, ecx
sub eax, edi
add eax, edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, eax
mov dword [ecx + esi*8 + 0x1ac], eax
jmp 0x4cb3b0
mov ecx, dword [ebp - 0x3c]
push dword [ecx + esi*8 + 0x1a4]
push edx
push str.schannel:_encrypted_data_cached:_offset__zu_length__zu_n
push ebx
call fcn.00494040
add esp, 0x10
jmp 0x4cb3d3
mov dword [edi + esi*8 + 0x1ac], 0
mov edi, dword [ebp - 0x48]
cmp edi, 0x90321
jne 0x4cb42d
push str.schannel:_remote_party_requests_SSL_TLS_renegotiation_n
push ebx
call fcn.00494040
push str.schannel:_renegotiating_SSL_TLS_connection_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
push 0
mov ecx, eax
mov dword [eax + esi*8 + 0x180], 1
mov dword [eax + esi*8 + 0x1a0], 3
call fcn.004ca920
add esp, 0x18
test eax, eax
je 0x4cb4e8
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + esi*8 + 0x1ac]
test eax, eax
jne 0x4cb1c5
mov edi, dword [ebp - 0x3c]
push dword [edi + esi*8 + 0x1a8]
push dword [edi + esi*8 + 0x1b0]
push str.schannel:_decrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.00494040
mov edi, dword [edi + esi*8 + 0x1b0]
add esp, 0x10
cmp dword [ebp + 0x14], edi
cmovb edi, dword [ebp + 0x14]
test edi, edi
je 0x4cb534
mov eax, dword [ebp - 0x3c]
push edi
push dword [eax + esi*8 + 0x1b8]
push dword [ebp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x44], edi
mov ecx, dword [eax + esi*8 + 0x1b8]
mov eax, dword [eax + esi*8 + 0x1b0]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x3c]
add esp, 0xc
sub dword [eax + esi*8 + 0x1b0], edi
push edi
push str.schannel:_decrypted_data_returned__zd_n
push ebx
call fcn.00494040
mov edi, dword [ebp - 0x3c]
add esp, 0xc
push dword [edi + esi*8 + 0x1a8]
push dword [edi + esi*8 + 0x1b0]
push str.schannel:_decrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.00494040
add esp, 0x10
jmp 0x4cb537
push str.schannel:_SSL_TLS_connection_renegotiated_n
push ebx
call fcn.00494040
push dword [ebp - 0x40]
push dword [ebp + 0x14]
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
call fcn.004cafe0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push str.schannel:_failed_to_decrypt_data__need_more_data_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x51
jmp 0x4cb0de
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
test ecx, ecx
jg 0x4cb58e
cmp edx, 0x90317
je 0x4cb562
test edx, edx
jne 0x4cb58c
cmp dword [edi + esi*8 + 0x1ac], edx
jbe 0x4cb58c
mov eax, dword [edi + esi*8 + 0x1b4]
cmp byte [eax], 0x15
jne 0x4cb58c
push str.schannel:_server_closed_the_connection_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x40]
add esp, 8
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
test ecx, ecx
jns 0x4cb5c7
test edx, edx
je 0x4cb5c7
mov ecx, edi
call fcn.00490430
push eax
push str.schannel:_failed_to_read_data_from_server:__s_n
push ebx
call fcn.00494040
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [eax], 0x38
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret