Function at 0x4231b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
je 0x4231cb
cmp dword [ebx], 0
ja 0x423205
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4231d7
cmp dword [esi], 0
ja 0x423208
test edi, edi
je 0x4231e0
cmp dword [edi], 0
ja 0x423208
mov eax, dword [ebp + 0x18]
test eax, eax
jge 0x4231ea
or eax, 0xffffffff
push eax
call fcn.00453ba0
mov eax, dword [ebp + 0x1c]
add esp, 4
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
mov dword [ebp - 8], 0
jl 0x423241
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ecx
test esi, esi
je 0x423385
cmp dword [0x4c0478], 0
je 0x423385
test edi, edi
mov dword [ebp - 4], 0x8000
jne 0x423279
lea edi, [ebp - 0x124]
mov edx, edi
push edx
mov dword [ebp - 4], 0x40
call fcn.00422e00
add esp, 4
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x4c0478], ebx
jbe 0x4232c7
mov edi, edi
mov eax, dword [ebx*4 + 0x4c047c]
lea ecx, [ebp - 0x18]
push esi
push ecx
mov dword [ebp - 0x18], eax
call fcn.00422ef0
add esp, 8
cmp al, 1
jne 0x4232bc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00422e10
add esp, 0xc
add ebx, 1
cmp ebx, dword [0x4c0478]
jb 0x423290
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edi
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
je 0x423377
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [edi], esi
jbe 0x423369
lea ebx, [edi + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, dword [ebx]
mov dword [ebp - 0x18], ecx
je 0x423326
push 0x8000
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.00422e10
add esp, 0xc
mov eax, dword [ebp + 0x10]
push 0x8000
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00422e10
lea edx, [ebp - 0x18]
push 0x4c0478
push edx
call fcn.00422ea0
push 0x8000
lea eax, [ebp - 0x18]
push 0x4e0498
push eax
call fcn.00422e10
add esi, 1
add esp, 0x20
add ebx, 4
cmp esi, dword [edi]
jb 0x423308
mov ebx, dword [ebp - 4]
push 0x4e047c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x124]
cmp edi, ecx
jne 0x42339b
xor edi, edi
jmp 0x42339b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push edx
push edi
push esi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42340c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4233af
mov dword [ecx], eax
add eax, 0xffffd8ec
cmp eax, 0x22
ja case.0x4233c0.10005
movzx ecx, byte [eax + 0x423460]
jmp dword [ecx*4 + 0x42344c]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push edx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.00422f10
add esp, 0x10
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], ebx
je 0x423422
cmp dword [eax], 1
jbe 0x423422
call fcn.00422d70
test esi, esi
je 0x423432
cmp dword [esi], 1
jbe 0x423432
mov eax, esi
call fcn.00422d70
test edi, edi
je 0x423442
cmp dword [edi], 1
jbe 0x423442
mov eax, edi
call fcn.00422d70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret