Function at 0x10056d50
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10104d6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd60
mov eax, dword [0x10167080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1020d384]
test eax, eax
je 0x10056e3a
cmp byte [eax + 0xc], 0
je 0x10056e3a
cmp dword [0x10167dd0], 0xffffffff
mov esi, 0x4fca50
je 0x10056ddd
cmp byte [0x1021ab88], 0
jne 0x10056f91
push 0
push str.2_LiveLink_:_7Client_connected__n
push 0
call esi
add esp, 0xc
mov byte [0x1021ab88], 1
jmp 0x10056f91
mov eax, dword [0x10167dd4]
cmp eax, 0xffffffff
je 0x10056e3a
lea ecx, [ebp - 0xd68]
mov dword [ebp - 0xb44], eax
push ecx
push 0
push 0
lea ecx, [ebp - 0xb48]
mov dword [ebp - 0xb48], 1
push ecx
push eax
mov dword [ebp - 0xd68], 0
mov dword [ebp - 0xd64], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10056e5f
push str.1_LiveLink_:_7Failed_to_query_socket_status__n
push 0
mov eax, 0x4fd330
call eax
add esp, 8
mov byte [0x1021ab88], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d8e9a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp eax, 1
jne 0x10056e3a
push 0
push 0
push dword [0x10167dd4]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [0x10167dd0], eax
cmp eax, 0xffffffff
jne 0x10056e94
push str.1_LiveLink_:_7Failed_to_accept_a_connection___n
push 0
mov eax, 0x4fd330
call eax
mov eax, dword [0x10167dd0]
add esp, 8
lea ecx, [ebp - 0xd5c]
mov dword [ebp - 0xd5c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
push str.2_LiveLink_:_7Client_connected__n
push 0
call esi
add esp, 0xc
mov byte [0x1021ab88], 1
lea eax, [ebp - 0xd4c]
push 0x204
push 0
push eax
call fcn.100db190
mov ax, word [0x1013d33c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
add esp, 0xc
mov word [ebp - 0x24], ax
movq xmm0, qword [str.Feb_18_2024]
mov al, byte [0x1013d33e]
mov dword [ebp - 0xd50], 0
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], 0xf
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push str.3495
push str._IW3XO::_s::_s__accepted_request
call fcn.10069130
add esp, 0xc
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.100588b0
add esp, 8
lea ecx, [ebp - 0xd50]
call fcn.100567d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10056f91
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056f87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057748
push ecx
push edx
call fcn.100d91c2
add esp, 8
push 0x82000
push 0
push 0x1017dbd0
call fcn.100db190
add esp, 0xc
push 0
push 0x82000
push 0x1017dbd0
push dword [0x10167dd0]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1005700c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10056e41
push 2
push dword [0x10167dd0]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x10167dd0]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push str.1_LiveLink_:_7Client_disconnected__n
push 0
mov dword [0x10167dd0], 0xffffffff
call esi
add esp, 0xc
jmp 0x10056e41
mov eax, 0xfc0fc0fd
xor esi, esi
mul ecx
mov dword [ebp - 0xd5c], esi
mov eax, edx
shr eax, 9
mov dword [ebp - 0xd64], eax
test eax, eax
je 0x10056e41
nop
push 0xa0c
lea eax, [ebp - 0xa40]
push 0
push eax
call fcn.100db190
imul esi, esi, 0x208
lea ecx, [ebp - 0xa40]
add esp, 0xc
mov dword [ebp - 0xd54], esi
lea eax, [esi + 0x1017dbd8]
mov dword [0x10167de4], eax
call fcn.10006440
cmp dword [esi + 0x1017dbd0], 7
mov esi, dword [ebp - 0xa3c]
jne 0x10057116
xor edi, edi
test esi, esi
jle 0x100570f2
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.brushselect
call fcn.100690a0
test eax, eax
je 0x1005709d
inc edi
cmp edi, esi
jl 0x10057081
jmp 0x100570f2
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x100570f2
lea ecx, [ebp - 0xd6c]
push ecx
push 0x10142818
push eax
call fcn.10058ba0
add esp, 0xc
test eax, eax
jne 0x100570d4
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_SELECT
push eax
mov eax, 0x4fca50
call eax
add esp, 0xc
jmp 0x100570e2
cmp dword [ebp - 0xd6c], 0
setne byte [0x1020d469]
mov esi, dword [ebp - 0xa3c]
mov dword [0x1020d470], 0
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x10057116
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_SELECT_._n
push 0
mov eax, 0x4fca50
call eax
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
mov eax, dword [ebp - 0xd54]
cmp dword [eax + 0x1017dbd0], 8
jne 0x100571ca
xor edi, edi
test esi, esi
jle 0x100571a6
nop
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.brushcount
call fcn.100690a0
test eax, eax
je 0x1005714c
inc edi
cmp edi, esi
jl 0x10057130
jmp 0x100571a6
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x100571a6
push 0x1020d470
push 0x10142818
push eax
call fcn.10058ba0
add esp, 0xc
test eax, eax
jne 0x1005717f
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_COUNT
push eax
mov eax, 0x4fca50
call eax
add esp, 0xc
mov eax, dword [0x1020d478]
add eax, dword [0x1020d470]
cmp eax, 0x10
jle 0x10057199
mov dword [0x1020d470], 0x10
mov esi, dword [ebp - 0xa3c]
mov byte [0x1020d468], 1
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x100571ca
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_COUNT_._n
push 0
mov eax, 0x4fca50
call eax
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
mov ecx, dword [ebp - 0xd54]
cmp dword [ecx + 0x1017dbd0], 9
jne 0x1005721e
xor edi, edi
test esi, esi
jle 0x100571fa
nop
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.brushnum
call fcn.100690a0
test eax, eax
je 0x1005726f
inc edi
cmp edi, esi
jl 0x100571e0
mov edi, 0x4fca50
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x1005721e
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_CURRENT_NUM_._n
push 0
call edi
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
cmp dword [0x1020d474], 0x10
jge 0x100574e9
mov ecx, dword [ebp - 0xd54]
cmp dword [ecx + 0x1017dbd0], 0xb
jne 0x10057351
xor edi, edi
test esi, esi
jle 0x1005732d
nop dword [eax + eax]
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.brushfacecount
call fcn.100690a0
test eax, eax
je 0x100572c3
inc edi
cmp edi, esi
jl 0x10057250
jmp 0x1005732d
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x100571fa
push 0x1020d474
push 0x10142818
push eax
call fcn.10058ba0
add esp, 0xc
mov edi, 0x4fca50
test eax, eax
jne 0x100572ad
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_CURRENT_NUM
push eax
call edi
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
jmp 0x100571ff
mov eax, dword [0x1020d478]
add dword [0x1020d474], eax
mov esi, dword [ebp - 0xa3c]
jmp 0x100571ff
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x1005732d
imul esi, dword [0x1020d474], 0xd50
lea edi, [esi + 0x1020d484]
push edi
push 0x10142818
push eax
call fcn.10058ba0
add esp, 0xc
test eax, eax
jne 0x10057302
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_FACE_COUNT
push eax
mov eax, 0x4fca50
call eax
add esp, 0xc
cmp dword [edi], 0
je 0x10057327
push 0xd4
lea eax, [esi + 0x1020d48c]
mov dword [esi + 0x1020d488], 0
push 0
push eax
call fcn.100db190
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x10057351
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_FACE_COUNT_._n
push 0
mov eax, 0x4fca50
call eax
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
mov edi, dword [ebp - 0xd54]
cmp dword [edi + 0x1017dbd0], 0xc
jne 0x10057455
imul eax, dword [0x1020d474], 0xd50
xor edi, edi
mov dword [ebp - 0xd58], eax
mov eax, dword [eax + 0x1020d488]
mov dword [ebp - 0xd60], eax
test esi, esi
jle 0x1005740b
nop word [eax + eax]
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.normal
call fcn.100690a0
test eax, eax
je 0x100573ac
inc edi
cmp edi, esi
jl 0x10057390
jmp 0x1005740b
mov edx, dword [ebp + edi*8 - 0xa34]
test edx, edx
je 0x1005740b
imul ecx, dword [ebp - 0xd60], 0xd4
mov esi, dword [ebp - 0xd58]
lea eax, [esi + 0x1020d494]
add eax, ecx
push eax
lea eax, [esi + 0x1020d490]
add eax, ecx
push eax
lea eax, [ecx + 0x1020d48c]
add eax, esi
push eax
push str._f__f__f
push edx
call fcn.10058ba0
add esp, 0x14
test eax, eax
jne 0x10057405
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_FACE_NORMALS
push eax
mov eax, 0x4fca50
call eax
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
xor edi, edi
test esi, esi
jle 0x1005742b
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.dist
call fcn.100690a0
test eax, eax
je 0x10057499
inc edi
cmp edi, esi
jl 0x10057411
mov edi, 0x4fca50
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x1005744f
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_FACE_NORMALS_._n
push 0
call edi
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
mov edi, dword [ebp - 0xd54]
cmp dword [edi + 0x1017dbd0], 0xa
jne 0x100574ef
mov edx, dword [0x1020d474]
lea ecx, [ebp - 0xa40]
call fcn.10056ad0
mov eax, dword [0x1020d388]
cmp byte [eax + 0xc], 0
je 0x10057491
push 0
push str.2_LiveLink_:_7Received_command_of_type__RADIANT_COMMAND_BRUSH_FACE_._n
push 0
mov eax, 0x4fca50
call eax
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
jmp 0x100574ef
mov ecx, dword [ebp + edi*8 - 0xa34]
test ecx, ecx
je 0x1005742b
imul eax, dword [ebp - 0xd60], 0xd4
lea eax, [eax + 0x1020d498]
add eax, dword [ebp - 0xd58]
push eax
push 0x101456ac
push ecx
call fcn.10058ba0
add esp, 0xc
mov edi, 0x4fca50
test eax, eax
jne 0x100574de
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_BRUSH_FACE_NORMALS_DIST
push eax
call edi
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
jmp 0x10057430
mov edi, dword [ebp - 0xd54]
cmp dword [edi + 0x1017dbd0], 6
jne 0x10057647
xor edi, edi
test esi, esi
jle 0x10057561
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.origin
call fcn.100690a0
test eax, eax
je 0x1005751e
inc edi
cmp edi, esi
jl 0x10057502
jmp 0x10057561
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x10057561
push 0x1021ab94
push 0x1021ab90
push 0x1021ab8c
push str._f__f__f
push eax
call fcn.10058ba0
add esp, 0x14
test eax, eax
jne 0x1005755b
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_CAMERA_ORIGIN
push eax
mov eax, 0x4fca50
call eax
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
xor edi, edi
test esi, esi
jle 0x1005758e
nop word [eax + eax]
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.angles
call fcn.100690a0
test eax, eax
je 0x1005767f
inc edi
cmp edi, esi
jl 0x10057570
mov edi, 0x4fca50
movss xmm1, dword [0x1021ab98]
mov eax, dword [0x1020d388]
xorps xmm1, xmmword [0x10151fb0]
movss dword [0x1021ab98], xmm1
mov byte [0x1021ab89], 1
cmp byte [eax + 0xc], 0
je 0x10057641
movss xmm0, dword [0x1021ab94]
cvtps2pd xmm0, xmm0
push 0
sub esp, 0x34
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [0x1021ab90]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [0x1021ab8c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [0x1021aba0]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [0x1021ab9c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [esp], xmm0
push str._CAM:R2G_:_Angles:____.1f___.1f___.1f____Origin:____.1f___.1f___.1f___n
call fcn.10069130
add esp, 0x38
push eax
push 0
call edi
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
mov edi, dword [ebp - 0xd54]
cmp dword [edi + 0x1017dbd0], 0x1e
jne 0x1005772a
xor edi, edi
test esi, esi
jle 0x1005772a
nop
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, str.dvarname
call fcn.100690a0
test eax, eax
je 0x100576cb
inc edi
cmp edi, esi
jl 0x10057660
jmp 0x1005772a
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x1005758e
push 0x1021aba0
push 0x1021ab9c
push 0x1021ab98
push str._f__f__f
push eax
call fcn.10058ba0
add esp, 0x14
mov edi, 0x4fca50
test eax, eax
jne 0x100576c0
push eax
push str.___:_sscanf_failed_to_read_command_of_type_:_RADIANT_COMMAND_CAMERA_ANGLES
push eax
call edi
add esp, 0xc
mov esi, dword [ebp - 0xa3c]
jmp 0x10057593
mov eax, dword [ebp + edi*8 - 0xa34]
mov dword [ebp - 0xd58], eax
test eax, eax
je 0x1005772a
xor edi, edi
nop
mov edx, dword [ebp + edi*8 - 0xa38]
mov ecx, 0x10147308
call fcn.100690a0
test eax, eax
je 0x100576fc
inc edi
cmp edi, esi
jl 0x100576e0
jmp 0x1005772a
mov eax, dword [ebp + edi*8 - 0xa34]
test eax, eax
je 0x1005772a
push eax
push dword [ebp - 0xd58]
push str._s__s_n
call fcn.10069130
add esp, 0xc
push eax
push 0
push 0
mov eax, 0x4f9ab0
call eax
add esp, 0xc
mov esi, dword [ebp - 0xd5c]
inc esi
mov dword [ebp - 0xd5c], esi
cmp esi, dword [ebp - 0xd64]
jb 0x10057030
jmp 0x10056e41
call fcn.100de11f
int3