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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48041b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b3570]
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 + 0x680]
mov dword [ebp - 0x42c], eax
cmp esi, eax
je 0x46187f
add esi, 0x50
nop word [eax + eax]
lea eax, [esi - 0x50]
push eax
mov dword [ebp - 0x430], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x4618a0
mov dword [ebp - 4], eax
mov eax, dword [esi - 0x20]
cmp eax, 0xffffffff
je 0x46185a
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 0x4617cf
jns 0x46171d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4617cf
test edi, edi
jle 0x46185a
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.004138f0
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 byte [ebp - 4], 1
call fcn.0041d4d0
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x4617b9
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4617af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46189a
push ecx
push edx
call fcn.00471dc9
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 0x46185a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jns 0x461826
push 0x4142c0
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.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
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 0x46183c
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 0x46184e
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esi - 4]
cmp eax, dword [esi]
je 0x46185a
mov dword [esi], eax
lea eax, [esi - 0x50]
mov dword [ebp - 4], 0xffffffff
push eax
call sub.MSVCP140.dll__Mtx_unlock
add esi, 0x68
add esp, 4
lea eax, [esi - 0x50]
cmp eax, dword [ebp - 0x42c]
jne 0x4616c0
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.0047202b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3