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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a26b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4d04c0]
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 + 0x30]
lea eax, [edi + 0x680]
mov dword [ebp - 0x430], eax
cmp edi, eax
je 0x4772fa
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 0x47731b
mov eax, dword [esi - 0x24]
cmp eax, 0x7fffffff
je 0x477322
mov eax, dword [esi - 0x20]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x4772d8
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 0x477248
jns 0x477196
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x477248
mov eax, dword [ebp - 0x42c]
test eax, eax
jle 0x4772d8
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.00415bc0
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.004211a0
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x477232
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x477228
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477315
push ecx
push edx
call fcn.00489a49
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 0x4772d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x42c], 0
jge 0x4772a4
push 0x416670
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.004156b0
add esp, 8
push eax
call fcn.004156b0
add esp, 8
push eax
call fcn.004156b0
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 0x4772ba
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 0x4772cc
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esi - 4]
cmp eax, dword [esi]
je 0x4772d8
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 0x477120
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.00489ca8
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