Function at 0x440ea0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x57af80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x44112a
cmp word [ebx], 0
je 0x44112a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x44112a
test esi, esi
je 0x44112a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x44112a
test edx, edx
je 0x44112a
test eax, eax
je 0x44112a
push ecx
push 0
mov dword [edx], 0
push esi
mov dword [eax], 0
call sub.MSVCR120.dll_memset
push 0x33
lea eax, [ebp - 0x44]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.0043c530
push 0
push edi
push 0x1bd
push ebx
call fcn.00441950
add esp, 4
push eax
call fcn.00440c30
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x44112a
push 0
push 0x33
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
xor eax, eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x44100b
push eax
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44100b
mov ecx, dword [ebp + 0xc]
mov eax, 0x10624dd3
mul ecx
mov dword [ebp - 0x144], edi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x10], edx
sub ecx, eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x148]
mov dword [ebp - 0xc], ecx
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x44100b
push 0
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14c], eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x14c]
xor edi, edi
test eax, eax
je 0x441114
cmp eax, 0xffffffff
je 0x441114
cmp byte [esi + 0x24], 0x11
jne 0x44109d
xor eax, eax
cmp ax, word [esi + 0x25]
jne 0x44109d
mov al, byte [esi + 0x46]
test al, al
je 0x441044
cmp al, 8
jne 0x44109d
movzx ecx, word [esi + 0x47]
test cx, cx
je 0x44109d
movzx eax, al
lea edi, [esi + 0x49]
add edi, eax
push ecx
push edi
mov dword [ebp - 0x14c], edi
call dword [sym.imp.MSVCR120.dll_wcsnlen]
add esp, 8
lea edi, [edi + eax*2]
mov eax, dword [ebp - 0x14c]
add edi, 2
cmp word [eax], 0
je 0x441080
mov ecx, dword [ebp - 0x154]
mov dword [ecx], eax
cmp word [edi], 0
je 0x44109d
push edi
call fcn.004411b0
add esp, 4
test al, al
mov eax, dword [ebp - 0x150]
jne 0x4410a3
mov dword [eax], edi
jmp 0x4410a3
mov eax, dword [ebp - 0x150]
cmp dword [eax], 0
jne 0x441114
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0
push eax
push 0x64
push ebx
call sub.NETAPI32.dll_NetServerGetInfo
test eax, eax
jne 0x441114
mov eax, dword [ebp - 0x14c]
push 0x100
push dword [eax + 4]
push ebx
call dword [sym.imp.MSVCR120.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x441109
mov eax, dword [ebp - 0x14c]
test edi, edi
cmove edi, esi
sub esi, edi
push dword [eax + 4]
add esi, dword [ebp + 0x14]
shr esi, 1
push esi
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov eax, dword [ebp - 0x150]
add esp, 0xc
mov dword [eax], edi
push dword [ebp - 0x14c]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004df262
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004df262
mov esp, ebp
pop ebp
ret