Function at 0x470ba0
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x4ccebf
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.004c6360
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x10f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54e864]
xor eax, esp
push eax
lea eax, [esp + 0x1110]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
xor ebp, ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov ebx, dword [eax]
mov dword [esp + 0x1c], edi
cmp ebx, eax
je 0x470f3e
mov dword [esp + 0x40], ebp
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 1
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push ebp
push ebp
lea eax, [esp + 0x4c]
push eax
inc edx
push edx
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x470f33
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x470f33
mov dword [esp + 0x24], 0x10
mov edx, dword [ebx + 8]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x470d03
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push ebp
push 0xc8
lea ecx, [esp + 0x104c]
push ecx
push ebp
mov esi, eax
push esi
push ebp
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x470ce8
lea eax, [esp + 0x1044]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470cb0
sub eax, edx
cmp eax, 2
jb 0x470cc5
mov byte [esp + eax + 0x1042], cl
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x1044]
push edx
push ecx
push esi
push str.Red:_Error__d_al_crear_el_socket_para_la_nueva_conexion_del_puerto__d.__s
push ebp
call fcn.0042a000
add esp, 0x14
jmp 0x470f33
mov edx, dword [ebx + 8]
mov eax, dword [edx + 4]
push eax
push esi
push str.Red:_Error__d_al_crear_el_socket_para_escuchar_por_el_puerto__d.
push ebp
call fcn.0042a000
add esp, 0x10
jmp 0x470f33
cmp dword [edi + 0x18], 0x400
jb 0x470d2b
push 0x400
push str.Red:_Error_en_nueva_conexion_desde__s:_d._Socket__d._Hemos_alcanzado_el_numero_maximo_de_conexiones___d_.
push ebp
call fcn.0042a000
add esp, 0xc
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x470f33
lea ecx, [esp + 0x20]
push ecx
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x470e0d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push 0
push 0xc8
lea edx, [esp + 0x104c]
push edx
push 0
mov ebp, eax
push ebp
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x470dd5
lea eax, [esp + 0x1044]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470d80
sub eax, edx
cmp eax, 2
jb 0x470d95
mov byte [esp + eax + 0x1042], cl
mov ecx, dword [esp + 0x32]
lea eax, [esp + 0x1044]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, ax
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push esi
push ebp
push str.Red:_Error__d_al_hacer_el_socket__d_no_bloqueante_en_la_nueva_conexion_desde__s:_d.__s
push 0
call fcn.0042a000
add esp, 0x1c
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x470f31
mov ecx, dword [esp + 0x32]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, ax
mov eax, dword [esp + 0x34]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push esi
push ebp
push str.Red:_Error__d_al_hacer_el_socket__d_no_bloqueante_en_la_nueva_conexion_desde__s:_d.
push 0
call fcn.0042a000
add esp, 0x18
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x470f31
push 0x20
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1118], ebp
cmp eax, ebp
je 0x470e5b
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0xc], ecx
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 4]
push ecx
push esi
mov ecx, eax
call fcn.00464c40
mov dword [esp + 0x14], eax
jmp 0x470e61
mov dword [esp + 0x14], ebp
mov eax, ebp
mov dword [esp + 0x1118], 0xffffffff
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x470eaa
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [esp + 0x32]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [esp + 0x34]
movzx eax, ax
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push esi
push str.Red:_Error_al_registrar_el_socket__d_de_la_nueva_conexion_desde__s:_d._No_hay_memoria.
push ebp
call fcn.0042a000
add esp, 0x14
jmp 0x470f33
lea ebp, [edi + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x14]
mov edi, dword [esi]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
push edi
mov ecx, esi
call fcn.0046d9c0
mov ecx, dword [esi + 4]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x470f66
inc ecx
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
push ebp
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0044ac60
test al, al
je 0x470f2d
mov ecx, dword [esp + 0x14]
call fcn.00464c90
mov edx, dword [esp + 0x32]
push eax
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [esp + 0x38]
movzx eax, ax
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push str.Red:_Nueva_conexion_desde__s:_d._Socket__d.
push 2
call fcn.0042a000
add esp, 0x14
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov ebx, dword [ebx]
cmp ebx, dword [edi + 8]
jne 0x470c04
mov ecx, dword [esp + 0x1110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10f8]
xor ecx, esp
call fcn.004c6212
add esp, 0x1108
ret
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3