Function at 0x4ac930
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d798
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
call fcn.0046ab70
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
cmp esi, 0xffffffff
jne 0x4ac99d
or esi, esi
jmp 0x4ac9ae
xor edi, edi
call fcn.0046ab70
mov ecx, eax
mov eax, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4ac9d2
test eax, eax
je 0x4ac9d2
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00404e40
mov dword [ebp - 0x38], 1
cmp esi, 0xffffffff
jne 0x4ac9ed
call fcn.0046ab70
mov ecx, 0x2719
mov dword [ebp - 0x28], ecx
jmp 0x4aca2a
push 0
call ebx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0046ab70
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
test edi, edi
jne 0x4aca2d
call fcn.0046ab70
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 2
push str.127.0.0.1
mov dword [ebp - 0x2c], 0x10
mov word [ebp - 0x20], ax
call edi
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
push esi
mov word [ebp - 0x1e], cx
call fcn.004a3fb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4aca8d
cmp dword [ebp - 0x28], 0
je 0x4aca8d
push str.socket_select_interrupter
lea ecx, [ebp - 0x28]
push ecx
call fcn.00404e40
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
call fcn.004a42c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4acabb
cmp dword [ebp - 0x28], 0
je 0x4acabb
push str.socket_select_interrupter
lea edx, [ebp - 0x28]
push edx
call fcn.00404e40
push str.127.0.0.1
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
push esi
call fcn.004a4090
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4acaf0
cmp dword [ebp - 0x28], 0
je 0x4acaf0
push str.socket_select_interrupter
lea ecx, [ebp - 0x28]
push ecx
call fcn.00404e40
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.0046ab70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
cmp edi, 0xffffffff
jne 0x4acb27
mov dword [ebp - 0x34], edi
jmp 0x4acb39
xor esi, esi
call fcn.0046ab70
mov ecx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x4acb5a
test ecx, ecx
je 0x4acb5a
push str.socket_select_interrupter
lea edx, [ebp - 0x28]
push edx
call fcn.00404e40
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004a4020
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4acb88
cmp dword [ebp - 0x28], 0
je 0x4acb88
push str.socket_select_interrupter
lea edx, [ebp - 0x28]
push edx
call fcn.00404e40
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
jne 0x4acb9e
call fcn.0046ab70
mov ecx, 0x2719
or esi, esi
jmp 0x4acbdd
push 0
call ebx
push 0
push 0
push esi
mov dword [ebp - 0x50], 0
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
cmp esi, 0xffffffff
jne 0x4acbd4
or esi, esi
jmp 0x4acbe3
xor edi, edi
call fcn.0046ab70
mov ecx, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x4acc01
test ecx, ecx
je 0x4acc01
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00404e40
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x40], 1
cmp edi, 0xffffffff
jne 0x4acc22
call fcn.0046ab70
mov ecx, 0x2719
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jmp 0x4acc66
push 0
call ebx
lea ecx, [ebp - 0x40]
push ecx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.0046ab70
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
test edi, edi
js 0x4acc64
call fcn.0046ab70
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
test edi, edi
je 0x4acc78
test ecx, ecx
je 0x4acc78
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00404e40
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
je 0x4accad
push 0
call ebx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0046ab70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x4accb2
call fcn.0046ab70
mov dword [ebp - 0x40], 1
cmp esi, 0xffffffff
jne 0x4accd0
call fcn.0046ab70
mov ecx, 0x2719
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jmp 0x4acd14
push 0
call ebx
lea edx, [ebp - 0x40]
push edx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.0046ab70
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
test edi, edi
js 0x4acd12
call fcn.0046ab70
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
test edi, edi
je 0x4acd26
test ecx, ecx
je 0x4acd26
push str.socket_select_interrupter
lea ecx, [ebp - 0x28]
push ecx
call fcn.00404e40
mov dword [ebp - 0x38], 1
cmp esi, 0xffffffff
je 0x4acd58
push 0
call ebx
push 4
lea edx, [ebp - 0x38]
push edx
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.0046ab70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x4acd5d
call fcn.0046ab70
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov dword [eax], esi
mov esi, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x4acd9d
mov dword [ebp - 0x28], 0
call fcn.0046ab70
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x24], eax
push 1
lea eax, [ebp - 0x2d]
push eax
push esi
mov byte [ebp - 0x2d], 0
call fcn.004a55b0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret