Function at 0x5fd8c7e9
Capabilities:
Get socket status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x5fde94a8]
xor eax, esp
mov dword [esp + 0x140], eax
and dword [esp + 4], 0
and dword [esp + 0xc], 0
push ebx
push esi
xor esi, esi
mov dword [esp + 0x2c], 0xf689d7c8
inc esi
mov dword [esp + 0x30], 0x436b6f1f
push edi
mov edi, ecx
mov dword [esp + 0x38], 0x4fe5538a
mov dword [esp + 0x3c], 0x22c351e3
mov dword [esp + 0x20], esi
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8c851
test byte [eax + 0x1c], 0x80
jne 0x5fdb5454
mov ebx, dword [edi + 0x1a0]
test ebx, ebx
je 0x5fdb547e
mov edx, dword [edi + 8]
xor ecx, ecx
mov dword [esp + 0x40], ecx
test edx, edx
jne 0x5fda08d9
mov esi, dword [edi + 0xc]
test esi, esi
je 0x5fd8c897
xor edx, edx
test ecx, ecx
jne 0x5fdb54a8
cmp edx, ecx
jne 0x5fd8c897
cmp ecx, 0x40
jae 0x5fd8c897
mov dword [esp + edx*4 + 0x44], esi
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x5fdb54bd
mov ecx, 0x7530
cmp ebx, ecx
ja 0x5fdb5500
mov ecx, dword [edi + 0x18c]
cmp ecx, 0x5c0
jb 0x5fdb5510
xor ebx, ebx
cmp dword [edi + 0xd0], ebx
je 0x5fda08e8
lea edx, [esp + 0x40]
mov ecx, edi
call fcn.5fd8c789
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5fdb549e
mov ecx, dword [edi + 0xcc]
mov ebx, dword [ecx + 0x18]
cmp eax, 2
je 0x5fdb5597
mov eax, dword [ebx + 0x148]
mov dword [ebx + 0x14c], eax
lea eax, [ebx + 0xd4]
mov dword [esp + 0x10], eax
xor edx, edx
inc edx
lea eax, [esp + 0x20]
push eax
push edx
push dword [edi + 0x1a0]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0xa0]
call fcn.5fd8c675
mov esi, eax
test esi, esi
jne 0x5fdb55ae
cmp dword [esp + 0x1c], 2
mov eax, dword [ebx + 0x14c]
je 0x5fdb55e4
mov dword [ebx + 0x148], eax
cmp dword [esp + 0x20], 0
je 0x5fd8ca5f
mov ebx, dword [esp + 0x1c]
cmp dword [edi + 0x17c], 0
je 0x5fd8c96a
lea ecx, [edi + 0x18]
call fcn.5fd8c3f7
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8c983
test dword [eax + 0x1c], 0x400
jne 0x5fdb55ef
mov dword [edi + 0x13c], ebx
lea esi, [edi + 0xa8]
lea eax, [edi + 0x1d0]
xor ebx, ebx
mov dword [edi + 0xc8], eax
lea ecx, [edi + 0xc4]
mov eax, dword [edi + 0x18c]
mov dword [ecx], eax
lea eax, [edi + 0x18]
mov dword [esi], eax
push ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 1
mov eax, dword [edi + 0x38]
mov dword [esi + 4], eax
lea eax, [edi + 0xfc]
push ebx
mov dword [esi + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x34]
mov dword [esi + 0x10], 0x40
push eax
push 0x10
lea eax, [esp + 0x48]
mov dword [esi + 0x18], ebx
push eax
push 0xc8000006
push dword [edi + 0xa0]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x5fdb5613
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8ca1b
test dword [eax + 0x1c], 0x400
jne 0x5fdb5651
push ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x14]
push ebx
push eax
push esi
push dword [edi + 0xa0]
mov esi, dword [esp + 0x38]
mov ecx, esi
call dword [0x5fdec34c]
call esi
cmp eax, 0xffffffff
jne 0x5fda06e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
je 0x5fda093a
cmp dword [esp + 0x18], 0
je 0x5fd8ca6e
mov ecx, dword [edi + 0xcc]
mov edx, esi
call fcn.5fd8ca8a
mov esi, eax
mov eax, esi
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5fd83560
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x5fd8ca50
mov ecx, esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
jmp 0x5fd8c870
mov eax, dword [edi + 0x1a0]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ebx
imul ecx, edx, 0x3e8
lea eax, [esp + 0x48]
push ebx
push eax
push ebx
mov dword [esp + 0x40], ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x5fdb5522
lea edx, [esp + 0x40]
mov ecx, edi
call fcn.5fd8c789
mov ebx, eax
test ebx, ebx
jne 0x5fd8c959
jmp 0x5fdb549e
test ebx, ebx
jne 0x5fd8ca58
mov ax, word [esp + 0x14]
mov ecx, edi
mov word [edi + 0x1ce], ax
call fcn.5fd8fd53
jmp 0x5fd8ca58
push dword [edi + 0x1a0]
mov edx, 0x5fd8bc80
push dword [edi + 0x18c]
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4d
pop ecx
call fcn.5fdc8d83
mov eax, dword [0x5fde9010]
jmp 0x5fd8c851
cmp eax, 0x5fde9010
je 0x5fdb549e
test byte [eax + 0x1c], 0x80
je 0x5fdb549e
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x4e
pop ecx
call fcn.5fdc44b5
mov eax, 0x5b4
jmp 0x5fd8ca70
cmp dword [esp + edx*4 + 0x44], esi
je 0x5fd8c881
inc edx
cmp edx, ecx
jae 0x5fd8c881
jmp 0x5fdb54a8
cmp eax, 0x5fde9010
je 0x5fdb54f8
test dword [eax + 0x1c], 0x10000000
je 0x5fdb54f8
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x4f
pop ecx
call fcn.5fdc7d09
jmp 0x5fdb54f8
push ecx
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x50
pop ecx
call fcn.5fdc81e7
push 0x57
pop eax
jmp 0x5fd8ca70
mov dword [edi + 0x1a0], ecx
mov eax, dword [0x5fde9010]
jmp 0x5fd8c8ac
cmp eax, 0x5fde9010
je 0x5fdb54f8
test dword [eax + 0x1c], 0x10000000
jne 0x5fdb54e3
jmp 0x5fdb54f8
jns 0x5fdb5564
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fd8ca6e
test dword [ecx + 0x1c], 0x400
je 0x5fd8ca6e
push esi
push dword [ecx + 0x14]
mov edx, 0x5fd8bc80
push dword [ecx + 0x10]
push 0x51
pop ecx
call fcn.5fdc7d09
jmp 0x5fd8ca6e
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdb558d
test dword [eax + 0x1c], 0x400
je 0x5fdb558d
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x52
pop ecx
call fcn.5fdc7d09
mov esi, 0x5b4
jmp 0x5fd8ca6e
mov eax, dword [ebx + 0x144]
mov dword [ebx + 0x14c], eax
lea eax, [ebx + 0xe8]
jmp 0x5fd8c907
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8ca5f
test dword [eax + 0x1c], 0x400
je 0x5fd8ca5f
push esi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x53
pop ecx
call fcn.5fdc7d09
jmp 0x5fd8ca5f
mov dword [ebx + 0x144], eax
jmp 0x5fd8c94a
push dword [edi + 0xc]
mov edx, 0x5fd8bc80
push dword [edi + 8]
push dword [edi + 0x17c]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x54
pop ecx
call fcn.5fdc8d83
jmp 0x5fd8c983
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8ca58
test dword [eax + 0x1c], 0x400
je 0x5fd8ca58
push esi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x55
pop ecx
call fcn.5fdc7d09
jmp 0x5fd8ca58
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x56
pop ecx
call fcn.5fdc7d09
jmp 0x5fd8ca1b