Function at 0x4b6d70
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x58
push 0xffffffffffffffff
push 0x52dc19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 8]
mov dword [ebp + 0x54], ecx
cmp dword [ebp + 0x54], 0xffffffff
jne 0x4b6dbd
push 0
lea ecx, [ebp - 0x38]
call fcn.004a3760
push 0x56b734
lea edx, [ebp - 0x38]
push edx
call fcn.004be2db
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp + 0x64]
and eax, 1
je 0x4b6e47
mov dword [ebp + 0x4c], 0
jmp 0x4b6df5
mov ecx, dword [ebp + 0x4c]
add ecx, 1
mov dword [ebp + 0x4c], ecx
mov edx, dword [ebp + 0x4c]
cmp edx, dword [ebp - 0x344]
jae 0x4b6e13
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + eax*4 - 0x340]
cmp ecx, dword [ebp + 0x54]
jne 0x4b6e11
jmp 0x4b6e13
jmp 0x4b6dec
mov edx, dword [ebp + 0x4c]
cmp edx, dword [ebp - 0x344]
jne 0x4b6e43
cmp dword [ebp - 0x344], 0x40
jae 0x4b6e43
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x54]
mov dword [ebp + eax*4 - 0x340], ecx
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
xor eax, eax
jne 0x4b6de3
mov ecx, dword [ebp + 0x64]
and ecx, 2
je 0x4b6eb3
mov dword [ebp + 0x48], 0
jmp 0x4b6e61
mov edx, dword [ebp + 0x48]
add edx, 1
mov dword [ebp + 0x48], edx
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp - 0x240]
jae 0x4b6e7f
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + ecx*4 - 0x23c]
cmp edx, dword [ebp + 0x54]
jne 0x4b6e7d
jmp 0x4b6e7f
jmp 0x4b6e58
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp - 0x240]
jne 0x4b6eaf
cmp dword [ebp - 0x240], 0x40
jae 0x4b6eaf
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x54]
mov dword [ebp + ecx*4 - 0x23c], edx
mov eax, dword [ebp - 0x240]
add eax, 1
mov dword [ebp - 0x240], eax
xor ecx, ecx
jne 0x4b6e4f
mov edx, dword [ebp + 0x64]
and edx, 4
je 0x4b6f1f
mov dword [ebp + 0x44], 0
jmp 0x4b6ecd
mov eax, dword [ebp + 0x44]
add eax, 1
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [ebp - 0x13c]
jae 0x4b6eeb
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + edx*4 - 0x138]
cmp eax, dword [ebp + 0x54]
jne 0x4b6ee9
jmp 0x4b6eeb
jmp 0x4b6ec4
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [ebp - 0x13c]
jne 0x4b6f1b
cmp dword [ebp - 0x13c], 0x40
jae 0x4b6f1b
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x54]
mov dword [ebp + edx*4 - 0x138], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
xor edx, edx
jne 0x4b6ebb
mov eax, dword [ebp + 0x60]
push eax
lea ecx, [ebp + 0x38]
call fcn.0045a730
mov dword [ebp - 4], 0
mov dword [ebp + 0x40], 0
mov ecx, dword [0x534a84]
push ecx
mov edx, dword [0x534a80]
push edx
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.004c28f0
mov dword [ebp], eax
push 0
push 0xf4240
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x38]
push eax
call fcn.004c29a0
mov dword [ebp + 4], eax
lea ecx, [ebp + 8]
call fcn.00470b60
mov byte [ebp - 4], 1
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x344]
push ecx
mov edx, dword [ebp + 0x54]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x34], 0
jge 0x4b7051
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x40], 0x2714
jne 0x4b7051
lea ecx, [ebp + 0x18]
call fcn.00470b60
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
sbb ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.0045a650
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x28]
cmp ecx, dword [ebp + 0x3c]
jg 0x4b7010
jl 0x4b7007
mov edx, dword [ebp + 0x24]
cmp edx, dword [ebp + 0x38]
jae 0x4b7010
mov dword [ebp + 0x2c], 1
jmp 0x4b7017
mov dword [ebp + 0x2c], 0
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x4b702d
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp + 0x38]
call fcn.0045a960
jmp 0x4b7039
push 0
push 0
lea ecx, [ebp + 0x38]
call fcn.0045a780
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.0045a750
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00470bc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00470bc0
cmp dword [ebp + 0x34], 0
jge 0x4b7070
cmp dword [ebp + 0x40], 0x2714
je 0x4b6f39
cmp dword [ebp + 0x34], 0
jge 0x4b7082
mov edx, dword [ebp + 0x40]
push edx
call fcn.004b7ef0
add esp, 4
cmp dword [ebp + 0x34], 0
jle 0x4b7091
mov dword [ebp + 0x30], 1
jmp 0x4b7098
mov dword [ebp + 0x30], 0
mov al, byte [ebp + 0x30]
mov byte [ebp + 0x53], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.0045a750
mov al, byte [ebp + 0x53]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x58
mov esp, ebp
pop ebp
ret 8