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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4845f0
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4b3af4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x18]
lea eax, [esi + 0x600]
mov dword [ebp - 0x42c], eax
cmp esi, eax
je 0x4664c7
add esi, 0x50
mov ecx, eax
nop dword [eax]
mov eax, dword [esi - 0x20]
cmp eax, 0xffffffff
je 0x4664b9
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x466428
jns 0x466370
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x466428
test edi, edi
jle 0x4664b3
push edi
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], 0
xorps xmm0, xmm0
mov dword [ebp - 0x414], 0
push eax
lea ecx, [ebp - 0x428]
movups xmmword [ebp - 0x428], xmm0
call fcn.004136d0
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push dword [ebp - 0x418]
cmovae eax, dword [ebp - 0x428]
lea ecx, [esi - 0x1c]
push eax
mov dword [ebp - 4], 0
call fcn.0041c440
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x466412
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466408
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4664e2
push ecx
push edx
call fcn.0047607b
add esp, 8
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x4664b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jns 0x46647f
push 0x4140e0
push dword [esi - 0x20]
push str.__sock_
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.Socket:_connection_closed_by_error:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [esi - 0x20]
cmp eax, 0xffffffff
je 0x466495
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi - 0x20], 0xffffffff
mov dword [esi - 0xc], 0
lea eax, [esi - 0x1c]
cmp dword [esi - 8], 0x10
jb 0x4664a7
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esi - 4]
cmp eax, dword [esi]
je 0x4664b3
mov dword [esi], eax
mov ecx, dword [ebp - 0x42c]
add esi, 0x60
lea eax, [esi - 0x50]
cmp eax, ecx
jne 0x466330
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3