Function at 0x100042ab
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b1b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push edi
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11c], 0
mov eax, 1
test eax, eax
je 0x1000431c
mov dword [ebp - 0x124], 0x3e8
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx + 0x1fc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov ecx, 1
test ecx, ecx
je 0x100045e9
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x130], 0
jmp 0x1000436e
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x118]
jae 0x10004392
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp + ecx*4 - 0x114]
cmp edx, dword [ebp - 0x10]
jne 0x10004390
jmp 0x10004392
jmp 0x1000435f
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x118]
jne 0x100043c8
cmp dword [ebp - 0x118], 0x40
jae 0x100043c8
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x10]
mov dword [ebp + ecx*4 - 0x114], edx
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
xor ecx, ecx
test ecx, ecx
jne 0x10004353
mov edx, dword [ebp - 0x11c]
push edx
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jle 0x10004444
push 0
mov ecx, 0x22
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x16c]
lea ecx, [eax + edx + 0x1d8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jle 0x10004444
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x128], 0
jg 0x10004452
jmp 0x100045e9
cmp dword [ebp - 0x14], 0x22
jne 0x100045e4
mov edx, dword [ebp - 0x16c]
add edx, 0x1da
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x20
jne 0x100045e4
mov edx, dword [ebp - 0x134]
xor eax, eax
mov al, byte [edx + 1]
test eax, eax
je 0x1000459b
lea ecx, [ebp - 0x148]
push ecx
push str.Server_send_cliper_mode_error_
lea ecx, [ebp - 0x144]
call fcn.100022c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x144]
push edx
call fcn.10007879
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.100022f0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 0x1fc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x10004587
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x158]
push edx
call fcn.10007883
add esp, 8
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x174]
push ecx
push str.CSocketClient::StopAcceptingConnections_____closesocket__
lea edx, [ebp - 0x168]
push edx
call fcn.10002850
add esp, 0xc
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x16c]
call dword [eax + 0x2c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.100022f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.100022f0
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0x1fc], 0xffffffff
xor al, al
jmp 0x100045eb
mov edx, dword [ebp - 0x134]
xor eax, eax
mov al, byte [edx + 1]
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0x1cc], eax
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 8]
not eax
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0x1d0], eax
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0xc]
not eax
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0x1d4], eax
mov al, 1
jmp 0x100045eb
jmp 0x10004332
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret