Function at 0x40b4a2
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x45fcfc]
mov dword [ebp - 0x18], eax
mov dword [0x45fd0c], 1
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x318
add eax, 0x461d04
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x318
add edx, 0x110
add edx, 0x461c00
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._create_sock
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40b517
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x40b6eb
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xc], 0
jmp 0x40b582
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x120]
cmp dword [ebp - 0x18], eax
je 0x40b58d
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0xc], eax
jb 0x40b56f
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0xc], eax
jne 0x40b5bf
mov eax, dword [ebp - 0x124]
cmp eax, 0x3f
ja 0x40b5bf
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x120], edx
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x10], 0
jmp 0x40b5db
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x120]
cmp dword [ebp - 0x1c], eax
je 0x40b5e6
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x10], eax
jb 0x40b5c8
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x10], eax
jne 0x40b618
mov eax, dword [ebp - 0x124]
cmp eax, 0x3f
ja 0x40b618
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x120], edx
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
cmp eax, 0xffffffff
je 0x40b6bf
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
je 0x40b683
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._redirect_transfer
cmp eax, 0xffffffff
je 0x40b6c2
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
je 0x40b55c
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._redirect_transfer
cmp eax, 0xffffffff
je 0x40b6c5
jmp 0x40b55c
nop
jmp 0x40b6c6
nop
jmp 0x40b6c6
nop
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
leave
ret 4