Function at 0x406dd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x446654]
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 0x406e18
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jae 0x406e3c
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x406e3a
jmp 0x406e3c
jmp 0x406e09
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jne 0x406e72
cmp dword [ebp - 0x110], 0x40
jae 0x406e72
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 0x406dfd
mov dword [ebp - 0x230], 0
jmp 0x406e91
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jae 0x406eb5
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + edx*4 - 0x224]
cmp eax, dword [ebp + 8]
jne 0x406eb3
jmp 0x406eb5
jmp 0x406e82
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x228]
jne 0x406eeb
cmp dword [ebp - 0x228], 0x40
jae 0x406eeb
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 0x406e76
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 0x40707a
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 0x407078
cmp dword [ebp - 0x238], 0
jne 0x407078
mov dl, byte [0x43e641]
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 0x407078
mov dword [ebp - 0x24c], 0x43e642
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 0x407050
cmp byte [ebp - 0x251], 0
je 0x407044
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 0x407050
add dword [ebp - 0x250], 2
add dword [ebp - 0x24c], 2
cmp byte [ebp - 0x252], 0
jne 0x406ff2
mov dword [ebp - 0x258], 0
jmp 0x40705b
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 0x407078
mov eax, dword [ebp - 0x114]
jmp 0x407093
jmp 0x40708e
cmp dword [ebp - 0x114], 0
jne 0x407089
xor eax, eax
jmp 0x407093
or eax, 0xffffffff
jmp 0x407093
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret 4