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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4d8b40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 0x18]
lea eax, [edi + 0x680]
mov dword [ebp - 0x430], eax
cmp edi, eax
je 0x473aaa
lea esi, [edi + 0x50]
nop word [eax + eax]
push edi
mov dword [ebp - 0x434], edi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x473acb
mov eax, dword [esi - 0x24]
cmp eax, 0x7fffffff
je 0x473ad2
mov eax, dword [esi - 0x20]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x473a88
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4739f8
jns 0x473946
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4739f8
mov eax, dword [ebp - 0x42c]
test eax, eax
jle 0x473a88
push eax
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.004156b0
cmp dword [ebp - 0x414], 0xf
lea eax, [ebp - 0x428]
push dword [ebp - 0x418]
cmova eax, dword [ebp - 0x428]
lea ecx, [esi - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00420890
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4739e2
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4739d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473ac5
push ecx
push edx
call fcn.0048599f
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 0x473a88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x42c], 0
jge 0x473a54
push 0x4161d0
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.004151a0
add esp, 8
push eax
call fcn.004151a0
add esp, 8
push eax
call fcn.004151a0
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 0x473a6a
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], 0xf
jbe 0x473a7c
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esi - 4]
cmp eax, dword [esi]
je 0x473a88
mov dword [esi], eax
push edi
mov dword [ebp - 4], 0xffffffff
call sub.MSVCP140.dll__Mtx_unlock
add edi, 0x68
add esp, 4
add esi, 0x68
cmp edi, dword [ebp - 0x430]
jne 0x4738d0
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.00485bfe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
dec eax
push 6
mov dword [edi + 0x2c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3