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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5bc324]
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.00490900
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 0x4c7960
push 0x1000
mov dword [eax + esi*8 + 0x1b0], edi
mov dword [eax + esi*8 + 0x1a8], 0x1000
call dword [0x5bcc74]
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ecx + esi*8 + 0x1b8], eax
test eax, eax
jne 0x4c795a
push str.schannel:_unable_to_allocate_memory
jmp 0x4c79af
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 0x4c797e
cmp ecx, dword [ebp + 0x14]
jae 0x4c79d5
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 [0x5bcc78]
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ecx + esi*8 + 0x1b4], eax
test eax, eax
jne 0x4c795a
push str.schannel:_unable_to_re_allocate_memory
push ebx
call fcn.004909c0
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.00523a6a
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.00490900
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 0x4c7a7a
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 0x4c7a4e
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 0x4c7a61
mov eax, dword [ebp - 0x40]
mov dword [eax], edi
test ecx, ecx
jle 0x4c7a61
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.00490900
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.00490900
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov eax, dword [eax + esi*8 + 0x1ac]
test eax, eax
je 0x4c7d1f
test edi, edi
mov edi, dword [ebp - 0x3c]
jne 0x4c7d22
mov ecx, dword [ebp + 0x14]
cmp dword [edi + esi*8 + 0x1b0], ecx
jae 0x4c7d22
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 [0x5c32cc]
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 0x4c7dfb
test ecx, ecx
je 0x4c7b69
cmp ecx, 0x90321
je 0x4c7b69
cmp ecx, 0x90317
jne 0x4c7cb3
cmp dword [ebp - 0x28], 1
jne 0x4c7c37
push dword [ebp - 0x2c]
push str.schannel:_decrypted_data_length:__lu_n
push ebx
call fcn.00490900
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 0x4c7bae
cmp ecx, dword [ebp + 0x14]
jae 0x4c7bdf
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 [0x5bcc78]
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ecx + esi*8 + 0x1b8], eax
test eax, eax
jne 0x4c7b90
jmp 0x4c79aa
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4c7c09
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.00490900
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.00490900
add esp, 0x10
cmp dword [ebp - 0x10], 5
jne 0x4c7ca8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c7ca8
push eax
push str.schannel:_encrypted_data_length:__lu_n
push ebx
call fcn.00490900
mov edx, dword [edi + esi*8 + 0x1ac]
add esp, 0xc
mov edi, dword [ebp - 0x14]
cmp edx, edi
jbe 0x4c7c8d
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 0x4c7c90
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.00490900
add esp, 0x10
jmp 0x4c7cb3
mov dword [edi + esi*8 + 0x1ac], 0
mov edi, dword [ebp - 0x48]
cmp edi, 0x90321
jne 0x4c7d0d
push str.schannel:_remote_party_requests_SSL_TLS_renegotiation_n
push ebx
call fcn.00490900
push str.schannel:_renegotiating_SSL_TLS_connection_n
push ebx
call fcn.00490900
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.004c7200
add esp, 0x18
test eax, eax
je 0x4c7dc8
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 0x4c7aa5
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.00490900
mov edi, dword [edi + esi*8 + 0x1b0]
add esp, 0x10
cmp dword [ebp + 0x14], edi
cmovb edi, dword [ebp + 0x14]
test edi, edi
je 0x4c7e14
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.00490900
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.00490900
add esp, 0x10
jmp 0x4c7e17
push str.schannel:_SSL_TLS_connection_renegotiated_n
push ebx
call fcn.00490900
push dword [ebp - 0x40]
push dword [ebp + 0x14]
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
call fcn.004c78c0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push str.schannel:_failed_to_decrypt_data__need_more_data_n
push ebx
call fcn.00490900
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x51
jmp 0x4c79be
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
test ecx, ecx
jg 0x4c7e6e
cmp edx, 0x90317
je 0x4c7e42
test edx, edx
jne 0x4c7e6c
cmp dword [edi + esi*8 + 0x1ac], edx
jbe 0x4c7e6c
mov eax, dword [edi + esi*8 + 0x1b4]
cmp byte [eax], 0x15
jne 0x4c7e6c
push str.schannel:_server_closed_the_connection_n
push ebx
call fcn.00490900
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.00523a6a
mov esp, ebp
pop ebp
ret
test ecx, ecx
jns 0x4c7ea7
test edx, edx
je 0x4c7ea7
mov ecx, edi
call fcn.0048ccf0
push eax
push str.schannel:_failed_to_read_data_from_server:__s_n
push ebx
call fcn.00490900
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.00523a6a
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.00523a6a
mov esp, ebp
pop ebp
ret