Function at 0x4c8230
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e1f4
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5b339c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str..ServerToolkitTCPConnection.cpp
push 0xd3
push str.ServerToolkit::CTCPConnection::_DoProcessing
mov edi, ecx
call fcn.004c6a00
mov ecx, eax
call fcn.00402490
mov eax, dword [edi + 0x60]
xor esi, esi
mov byte [ebp - 0x25], 1
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
je 0x4c8303
mov dword [ebp - 0x158], eax
mov eax, 1
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
lea ecx, [ebp - 0x15c]
push ecx
push esi
mov dword [ebp - 0x34], esi
call sub.WS2_32.dll_select
cmp eax, esi
jle 0x4c847a
mov ecx, dword [edi + 0x60]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x30], 0x10
call sub.WS2_32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c834f
call fcn.004c6a00
mov esi, eax
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [edi]
push eax
push str.Error_in_accept__._Code___d_
push str.ServerToolkit::CTCPConnection::_DoProcessing
push 1
push esi
call edx
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov bl, byte [ebp - 0x25]
movzx ecx, bl
push ecx
push str.bRetVal
push str..ServerToolkitTCPConnection.cpp
push 0x149
push str.ServerToolkit::CTCPConnection::_DoProcessing
call fcn.004c6a00
mov ecx, eax
call fcn.00402520
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051973e
mov esp, ebp
pop ebp
ret
push ebx
mov ecx, edi
call fcn.004c8000
test al, al
je 0x4c8425
push 0x240
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x4c8387
mov eax, dword [edi + 0x28]
push 1
push ebx
push eax
call fcn.004dde70
mov esi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 4]
lea eax, [ecx + esi + 4]
push eax
mov eax, dword [edx + 4]
mov byte [ebp - 4], 0
call eax
mov ecx, esi
call fcn.004d1b50
test al, al
je 0x4c83d4
push 1
mov ecx, esi
call fcn.004d1d90
test al, al
jne 0x4c83f1
call fcn.004c6a00
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.ERROR:_Failed_to_start_new_TCPConnectionSession.
push str.ServerToolkit::CTCPConnection::_DoProcessing
push 1
push eax
call edx
add esp, 0x10
jmp 0x4c840c
call fcn.004c6a00
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.ERROR:_Failed_to_connect_new_TCPConnectionSession.
push str.ServerToolkit::CTCPConnection::_DoProcessing
push 1
push eax
call edx
add esp, 0x10
jmp 0x4c840c
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x2c], esp
push ebx
push eax
call fcn.004c6b20
mov ecx, dword [edi + 0x28]
add esp, 8
push esi
call fcn.004bedc0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 4]
lea eax, [edx + esi + 4]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c8303
call fcn.004c6a00
mov esi, eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004c6b20
add esp, 8
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 2
jb 0x4c8448
mov eax, dword [eax + 4]
jmp 0x4c844b
add eax, 4
mov ecx, dword [esi]
mov edx, dword [ecx]
push eax
push str.Connection_request_denied_to_IP___ls_.
push str.ServerToolkit::CTCPConnection::_DoProcessing
push 1
push esi
call edx
add esp, 0x14
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
call sub.WS2_32.dll_closesocket
jmp 0x4c8303
cmp eax, 0xffffffff
jne 0x4c8303
call fcn.004c6a00
mov esi, eax
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov eax, dword [edi]
push str.Error_in_select__._Code___d_
push str.ServerToolkit::CTCPConnection::_DoProcessing
push 1
push esi
call eax
jmp 0x4c8300