Function at 0x409d50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x44f6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
jmp 0x409d98
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jae 0x409dbc
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x409dba
jmp 0x409dbc
jmp 0x409d89
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jne 0x409df2
cmp dword [ebp - 0x110], 0x40
jae 0x409df2
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x409d7d
mov dword [ebp - 0x230], 0
jmp 0x409e11
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jae 0x409e35
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + edx*4 - 0x224]
cmp eax, dword [ebp + 8]
jne 0x409e33
jmp 0x409e35
jmp 0x409e02
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jne 0x409e6b
cmp dword [ebp - 0x228], 0x40
jae 0x409e6b
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x409df6
mov dword [ebp - 0x11c], 3
mov dword [ebp - 0x118], 0x1f4
lea eax, [ebp - 0x11c]
push eax
push 0
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jle 0x409ffa
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x234], 0
je 0x409ff8
cmp dword [ebp - 0x238], 0
jne 0x409ff8
mov dl, byte [0x446577]
mov byte [ebp - 0x23c], dl
xor eax, eax
mov word [ebp - 0x23b], ax
mov byte [ebp - 0x239], al
mov dword [ebp - 0x240], 4
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0x1007
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x409ff8
mov dword [ebp - 0x24c], 0x4465a3
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
mov al, byte [edx]
mov byte [ebp - 0x251], al
mov ecx, dword [ebp - 0x24c]
cmp al, byte [ecx]
jne 0x409fd0
cmp byte [ebp - 0x251], 0
je 0x409fc4
mov edx, dword [ebp - 0x250]
mov al, byte [edx + 1]
mov byte [ebp - 0x252], al
mov ecx, dword [ebp - 0x24c]
cmp al, byte [ecx + 1]
jne 0x409fd0
add dword [ebp - 0x250], 2
add dword [ebp - 0x24c], 2
cmp byte [ebp - 0x252], 0
jne 0x409f72
mov dword [ebp - 0x258], 0
jmp 0x409fdb
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
jne 0x409ff8
mov eax, dword [ebp - 0x114]
jmp 0x40a013
jmp 0x40a00e
cmp dword [ebp - 0x114], 0
jne 0x40a009
xor eax, eax
jmp 0x40a013
or eax, 0xffffffff
jmp 0x40a013
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004286dd
mov esp, ebp
pop ebp
ret 4