Function at 0x10047260
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fe4d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10163164]
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 - 0x40], ecx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x100472bd
xor eax, eax
mov dword [ebp - 0x24], 0x10163ad8
mov esi, 0x10163ad8
jmp 0x100472cc
call fcn.10008d10
mov esi, eax
call ebx
mov dword [ebp - 0x24], esi
or edi, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x1004733a
test eax, eax
jne 0x10047673
mov dword [ebp - 0x34], 1
call fcn.10008d10
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x2719
mov eax, 2
mov dword [ebp - 0x30], 0x10
push 0x7f000001
movlpd qword [ebp - 0x18], xmm0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x1e], ax
call fcn.10008d10
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100473c7
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10047368
call fcn.10008d10
mov esi, eax
call ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x10
mov eax, 2
movlpd qword [ebp - 0x18], xmm0
push 0x7f000001
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x100473b0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x100473cf
call fcn.10008d10
mov esi, eax
call ebx
cmp dword [ebp - 0x38], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jne 0x100473cf
test ecx, ecx
jne 0x10047673
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x20]
call fcn.1003e820
add esp, 8
cmp eax, 0xffffffff
jne 0x100473f3
cmp dword [ebp - 0x28], 0
jne 0x10047673
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call esi
cmp dword [ebp - 0x1c], eax
jne 0x1004740c
push 0x7f000001
call esi
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
jne 0x10047425
call fcn.10008d10
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10047470
push closesocket
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x1004745b
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004747a
xor eax, eax
jmp 0x1004748a
call fcn.10008d10
mov esi, eax
call ebx
cmp dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jne 0x1004743e
test eax, eax
jne 0x10047673
jmp 0x1004743e
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebx, 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
cmp ebx, 0xffffffff
jne 0x100474b8
test eax, eax
jne 0x10047680
call fcn.10008d10
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x100474ff
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100474e6
mov dword [ebp - 0x24], esi
cmp edi, 0xffffffff
jne 0x10047509
call fcn.10008d10
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
or edi, edi
jmp 0x10047533
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jne 0x100474d0
test eax, eax
jne 0x10047680
jmp 0x100474d0
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004752e
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
or edi, edi
jmp 0x10047530
xor ecx, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
jne 0x1004754a
test ecx, ecx
jne 0x1004768d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x29], 0
push eax
push ecx
lea edx, [ebp - 0x29]
mov ecx, ebx
call fcn.100471e0
add esp, 0xc
test eax, eax
je 0x10047579
cmp dword [ebp - 0x28], 0
jne 0x1004768d
mov dword [ebp - 0x34], 1
cmp ebx, 0xffffffff
jne 0x10047596
call fcn.10008d10
mov dword [ebp - 0x28], 0x2719
mov dword [ebp - 0x24], eax
jmp 0x100475c5
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x34]
push 4
push eax
push 1
push 6
push ebx
call esi
test eax, eax
jne 0x100475b2
mov dword [ebp - 0x28], eax
jmp 0x100475cb
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x29], 0
push eax
push ecx
lea edx, [ebp - 0x29]
mov ecx, edi
call fcn.100471e0
add esp, 0xc
test eax, eax
je 0x100475fa
cmp dword [ebp - 0x28], 0
jne 0x1004768d
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x1004760d
call fcn.10008d10
jmp 0x10047629
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x10047629
call fcn.10008d10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.1003e890
lea ecx, [ebp - 0x38]
call fcn.1003e890
lea ecx, [ebp - 0x44]
call fcn.1003e890
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.100b8868
mov esp, ebp
pop ebp
ret
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.10008cc0
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.10008cc0
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.10008cc0
int3