Function at 0x40c0b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x48d744]
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 0x40c0f8
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jae 0x40c11c
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x40c11a
jmp 0x40c11c
jmp 0x40c0e9
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jne 0x40c152
cmp dword [ebp - 0x110], 0x40
jae 0x40c152
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 0x40c0dd
mov dword [ebp - 0x230], 0
jmp 0x40c171
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jae 0x40c195
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + edx*4 - 0x224]
cmp eax, dword [ebp + 8]
jne 0x40c193
jmp 0x40c195
jmp 0x40c162
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jne 0x40c1cb
cmp dword [ebp - 0x228], 0x40
jae 0x40c1cb
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 0x40c156
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
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 0x40c35a
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 0x40c358
cmp dword [ebp - 0x238], 0
jne 0x40c358
mov dl, byte [0x47fdd3]
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 0x40c358
mov dword [ebp - 0x24c], 0x47fddd
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 0x40c330
cmp byte [ebp - 0x251], 0
je 0x40c324
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 0x40c330
add dword [ebp - 0x250], 2
add dword [ebp - 0x24c], 2
cmp byte [ebp - 0x252], 0
jne 0x40c2d2
mov dword [ebp - 0x258], 0
jmp 0x40c33b
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 0x40c358
mov eax, dword [ebp - 0x114]
jmp 0x40c373
jmp 0x40c36e
cmp dword [ebp - 0x114], 0
jne 0x40c369
xor eax, eax
jmp 0x40c373
or eax, 0xffffffff
jmp 0x40c373
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ab62
mov esp, ebp
pop ebp
ret 4