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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ecx]
mov eax, edx
push edi
push dword [ecx + 0xb4]
mov dword [ebp - 0x10], eax
xor ebx, ebx
push dword [ecx + 0x98]
lea eax, [eax + eax*8]
mov dword [ebp - 8], ecx
cmp dword [ecx + eax*8 + 0x1a0], 3
lea edi, [ecx + eax*8]
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push esi
mov dword [ebp - 4], esi
setne bl
call fcn.00490900
add esp, 0x10
cmp dword [edi + 0x184], 0
je 0x4c6e67
cmp dword [edi + 0x188], 0
je 0x4c6e67
mov ecx, dword [edi + 0x1b4]
test ecx, ecx
jne 0x4c6b55
push 0x1000
mov dword [edi + 0x1ac], ecx
mov dword [edi + 0x1a4], 0x1000
call dword [0x5bcc74]
mov ecx, eax
add esp, 4
mov dword [edi + 0x1b4], ecx
test ecx, ecx
je 0x4c6f41
mov edx, dword [edi + 0x1a4]
mov eax, edx
sub eax, dword [edi + 0x1ac]
cmp eax, 0x400
jae 0x4c6ba2
lea eax, [edx + edx]
push eax
push ecx
mov dword [edi + 0x1a4], eax
call dword [0x5bcc78]
add esp, 8
mov dword [edi + 0x1b4], eax
test eax, eax
jne 0x4c6ba2
push str.schannel:_unable_to_re_allocate_memory
push esi
call fcn.004909c0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
mov ebx, dword [ebp - 8]
je 0x4c6bea
mov eax, dword [edi + 0x1ac]
mov edx, dword [edi + 0x1a4]
mov ecx, dword [edi + 0x1b4]
sub edx, eax
push 0
add ecx, eax
mov eax, dword [ebp - 0x10]
push edx
push ecx
push dword [ebx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4c6e22
test eax, eax
je 0x4c6e59
add dword [edi + 0x1ac], eax
push dword [edi + 0x1a4]
push dword [edi + 0x1ac]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push esi
call fcn.00490900
mov esi, dword [edi + 0x1ac]
push esi
call dword [0x5bcc74]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], ecx
add esp, 0x14
mov dword [ebp - 0x40], 2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x11
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 2
test eax, eax
je 0x4c6f3e
push dword [edi + 0x1ac]
push dword [edi + 0x1b4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x98]
add esp, 0xc
call fcn.004aa410
mov esi, eax
test esi, esi
je 0x4c6b96
mov edx, dword [edi + 0x188]
lea eax, [ebp - 0x20]
lea ecx, [edx + 8]
push ecx
lea ecx, [edi + 0x1c0]
push ecx
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x5c32cc]
push 0
push 0
push dword [edi + 0x1bc]
mov eax, dword [eax + 0x18]
push esi
push edx
push dword [edi + 0x184]
call eax
push esi
mov dword [ebp - 0xc], eax
call dword [0x5bcc7c]
mov ecx, dword [ebp - 0x3c]
add esp, 4
test ecx, ecx
je 0x4c6d15
push ecx
call dword [0x5bcc7c]
add esp, 4
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp - 0xc]
cmp esi, 0x80090318
je 0x4c6f1b
cmp esi, 0x90312
je 0x4c6d34
test esi, esi
jne 0x4c6e73
xor ebx, ebx
lea esi, [ebp - 0x5c]
nop dword [eax]
cmp dword [esi + 4], 2
jne 0x4c6d9c
mov eax, dword [esi]
test eax, eax
je 0x4c6d9c
push eax
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push dword [ebp - 4]
call fcn.00490900
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [edx + eax*4 + 0x154]
cmp eax, dword [edx + 0x158]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
sete cl
push dword [esi + 8]
push ecx
push edx
call fcn.00490ca0
add esp, 0x14
mov ecx, eax
cmp dword [ebp - 0x14], 0
jne 0x4c6ea8
cmp dword [esi], ecx
jne 0x4c6ea8
mov eax, dword [esi + 8]
test eax, eax
je 0x4c6dae
push eax
mov eax, dword [0x5c32cc]
mov eax, dword [eax + 0x40]
call eax
inc ebx
add esi, 0xc
cmp ebx, 2
jl 0x4c6d40
cmp dword [ebp - 0x34], 5
jne 0x4c6ecc
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c6ecc
mov esi, dword [ebp - 4]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push esi
call fcn.00490900
mov ecx, dword [edi + 0x1ac]
add esp, 0xc
mov edx, dword [ebp - 0x38]
cmp ecx, edx
jbe 0x4c6ed9
mov eax, dword [edi + 0x1b4]
sub ecx, edx
push edx
add ecx, eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [edi + 0x1ac], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0x90312
jne 0x4c6ef6
xor ebx, ebx
jmp 0x4c6ba2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4c6e59
cmp dword [edi + 0x1a0], 3
je 0x4c6e42
mov dword [edi + 0x1a0], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push esi
call fcn.00490900
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push esi
call fcn.004909c0
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, ebx
call fcn.0048ccf0
mov edx, str.schannel:_next_InitializeSecurityContext_failed:__s
cmp esi, 0x80090322
mov ecx, str.schannel:_SNI_or_certificate_check_failed:__s
push eax
cmovne ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004909c0
add esp, 0xc
mov eax, 0x23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx*2]
push dword [ebp + eax*4 - 0x5c]
push ecx
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push dword [ebp - 4]
call fcn.004909c0
add esp, 0x10
mov eax, 0x23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
mov dword [edi + 0x1ac], 0
mov eax, dword [ebp - 0xc]
cmp eax, 0x90312
jne 0x4c6ef6
mov dword [edi + 0x1a0], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4c6f12
push str.schannel:_SSL_TLS_handshake_complete_n
push esi
mov dword [edi + 0x1a0], 4
call fcn.00490900
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.schannel:_received_incomplete_message__need_more_data_n
push dword [ebp - 4]
mov dword [edi + 0x1a0], 2
call fcn.00490900
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.004909c0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret