Function at 0x4175b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
call fcn.004068c0
movzx eax, al
test eax, eax
je 0x4175d7
jmp 0x417b6e
mov ecx, dword [ebp + 0x10]
call fcn.00412ea0
mov ecx, dword [ebp + 0x14]
call fcn.00412ea0
mov ecx, dword [ebp + 0x18]
call fcn.00412ea0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x310], 0
mov byte [ebp - 0x312], 0
mov byte [ebp - 0x311], 0
mov byte [ebp - 0x319], 0
mov dword [ebp - 0x33c], 0
lea ecx, [ebp - 0x338]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00411670
jmp 0x417651
push 0
lea edx, [ebp - 0x364]
push edx
lea ecx, [ebp - 0x338]
call fcn.00417e80
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00411610
push eax
lea ecx, [ebp - 0x338]
call fcn.00406fd0
movzx ecx, al
test ecx, ecx
je 0x417963
lea ecx, [ebp - 0x338]
call fcn.0040cb70
mov edx, dword [eax]
mov dword [ebp - 0x318], edx
cmp dword [ebp + 8], 1
jne 0x41771f
mov dword [ebp - 0x320], 0
jmp 0x4176af
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
cmp ecx, dword [ebp - 0x108]
jae 0x4176d6
mov edx, dword [ebp - 0x320]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp - 0x318]
jne 0x4176d4
jmp 0x4176d6
jmp 0x4176a0
mov ecx, dword [ebp - 0x320]
cmp ecx, dword [ebp - 0x108]
jne 0x41770f
cmp dword [ebp - 0x108], 0x40
jae 0x41770f
mov edx, dword [ebp - 0x320]
mov eax, dword [ebp - 0x318]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x417694
mov byte [ebp - 0x311], 1
jmp 0x4178c5
cmp dword [ebp + 8], 0
jne 0x4177b4
mov dword [ebp - 0x324], 0
jmp 0x417744
mov eax, dword [ebp - 0x324]
add eax, 1
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
cmp ecx, dword [ebp - 0x20c]
jae 0x41776b
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebp - 0x318]
jne 0x417769
jmp 0x41776b
jmp 0x417735
mov ecx, dword [ebp - 0x324]
cmp ecx, dword [ebp - 0x20c]
jne 0x4177a4
cmp dword [ebp - 0x20c], 0x40
jae 0x4177a4
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x318]
mov dword [ebp + edx*4 - 0x208], eax
mov ecx, dword [ebp - 0x20c]
add ecx, 1
mov dword [ebp - 0x20c], ecx
xor edx, edx
jne 0x417729
mov byte [ebp - 0x312], 1
jmp 0x4178c5
mov dword [ebp - 0x328], 0
jmp 0x4177cf
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
cmp ecx, dword [ebp - 0x20c]
jae 0x4177f6
mov edx, dword [ebp - 0x328]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebp - 0x318]
jne 0x4177f4
jmp 0x4177f6
jmp 0x4177c0
mov ecx, dword [ebp - 0x328]
cmp ecx, dword [ebp - 0x20c]
jne 0x41782f
cmp dword [ebp - 0x20c], 0x40
jae 0x41782f
mov edx, dword [ebp - 0x328]
mov eax, dword [ebp - 0x318]
mov dword [ebp + edx*4 - 0x208], eax
mov ecx, dword [ebp - 0x20c]
add ecx, 1
mov dword [ebp - 0x20c], ecx
xor edx, edx
jne 0x4177b4
mov dword [ebp - 0x32c], 0
jmp 0x41784e
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp - 0x108]
jae 0x417875
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp - 0x318]
jne 0x417873
jmp 0x417875
jmp 0x41783f
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp - 0x108]
jne 0x4178ae
cmp dword [ebp - 0x108], 0x40
jae 0x4178ae
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp - 0x318]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x417833
mov byte [ebp - 0x311], 1
mov al, byte [ebp - 0x311]
mov byte [ebp - 0x312], al
mov dword [ebp - 0x330], 0
jmp 0x4178e0
mov ecx, dword [ebp - 0x330]
add ecx, 1
mov dword [ebp - 0x330], ecx
mov edx, dword [ebp - 0x330]
cmp edx, dword [ebp - 0x310]
jae 0x417907
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp + eax*4 - 0x30c]
cmp ecx, dword [ebp - 0x318]
jne 0x417905
jmp 0x417907
jmp 0x4178d1
mov edx, dword [ebp - 0x330]
cmp edx, dword [ebp - 0x310]
jne 0x417940
cmp dword [ebp - 0x310], 0x40
jae 0x417940
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x318]
mov dword [ebp + eax*4 - 0x30c], ecx
mov edx, dword [ebp - 0x310]
add edx, 1
mov dword [ebp - 0x310], edx
xor eax, eax
jne 0x4178c5
mov ecx, dword [ebp - 0x318]
cmp ecx, dword [ebp - 0x33c]
jbe 0x41795e
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x33c], edx
jmp 0x41763d
cmp dword [ebp + 0x1c], 0
jl 0x4179ae
mov eax, dword [ebp + 0x1c]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x358], eax
mov eax, dword [ebp + 0x1c]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x354], edx
imul edx, dword [ebp - 0x354], 0x3e8
mov dword [ebp - 0x35c], edx
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x360], eax
mov byte [ebp - 0x319], 1
movzx ecx, byte [ebp - 0x319]
test ecx, ecx
je 0x4179c7
lea edx, [ebp - 0x360]
mov dword [ebp - 0x344], edx
jmp 0x4179d1
mov dword [ebp - 0x344], 0
movzx eax, byte [ebp - 0x311]
test eax, eax
je 0x4179ea
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x348], ecx
jmp 0x4179f4
mov dword [ebp - 0x348], 0
movzx edx, byte [ebp - 0x312]
test edx, edx
je 0x417a0d
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x34c], eax
jmp 0x417a17
mov dword [ebp - 0x34c], 0
mov ecx, dword [ebp - 0x344]
push ecx
lea edx, [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jle 0x417b46
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00411670
jmp 0x417a7b
push 0
lea ecx, [ebp - 0x36c]
push ecx
lea ecx, [ebp - 0x340]
call fcn.00417e80
lea edx, [ebp - 0x370]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00411610
push eax
lea ecx, [ebp - 0x340]
call fcn.00406fd0
movzx eax, al
test eax, eax
je 0x417b44
lea ecx, [ebp - 0x340]
call fcn.0040cb70
mov ecx, dword [eax]
mov dword [ebp - 0x334], ecx
movzx edx, byte [ebp - 0x311]
test edx, edx
je 0x417ae6
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x417ae6
lea edx, [ebp - 0x334]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00406750
movzx eax, byte [ebp - 0x312]
test eax, eax
je 0x417b18
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x334]
push edx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x417b18
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00406750
lea ecx, [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x334]
push edx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x417b3f
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00406750
jmp 0x417a67
jmp 0x417b6e
cmp dword [ebp - 0x350], 0
jge 0x417b6e
lea ecx, [ebp - 0x374]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00411670
mov ecx, eax
call fcn.0040cb70
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00406750
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret