Function at 0x10003d14
Capabilities:
Create tcp socket
Create udp socket
Start tcp server

Disassembly:
push 0x3c
mov eax, 0x10038bdc
call fcn.10022cff
mov dword [ebp - 0x40], ecx
mov ebx, dword [sym.imp.WS2_32.dll_WSASocketW]
xor eax, eax
push 1
push eax
push eax
push 6
push 1
push 2
mov dword [ebp - 0x30], eax
pop eax
push eax
mov dword [ebp - 0x2c], 0x1004d9c0
call ebx
mov edi, eax
lea ecx, [ebp - 0x30]
or esi, 0xffffffff
cmp edi, esi
sete dl
call fcn.10003461
cmp edi, esi
cmove edi, esi
mov dword [ebp - 0x44], edi
and dword [ebp - 4], 0
cmp edi, esi
jne 0x10003d6f
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push eax
push 4
lea eax, [ebp - 0x34]
mov byte [ebp - 0x25], 0
push eax
push 4
push 0xffff
lea edx, [ebp - 0x25]
mov ecx, edi
call fcn.10003926
add esp, 0x14
push 0x10
pop eax
push eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.100255c0
mov esi, dword [sym.imp.WS2_32.dll_htonl]
add esp, 0xc
push 2
pop ecx
push 0x7f000001
mov word [ebp - 0x24], cx
call esi
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x24]
xor eax, eax
mov ecx, edi
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x30]
push eax
push 0x10
call fcn.10003483
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10003deb
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x24]
call fcn.10003981
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10003e0e
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
push 0
call esi
cmp dword [ebp - 0x20], eax
jne 0x10003e21
push 0x7f000001
call esi
mov dword [ebp - 0x20], eax
cmp edi, 0xffffffff
jne 0x10003e38
call fcn.10001bef
mov ecx, 0x2719
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jmp 0x10003e5b
push bind
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
lea ecx, [ebp - 0x30]
test esi, esi
setne dl
call fcn.10003461
cmp esi, 0xffffffff
jne 0x10003e63
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x10003fcf
push 1
push 0
push 0
push 6
push 1
push 2
pop eax
push eax
call ebx
mov ebx, eax
lea ecx, [ebp - 0x30]
or esi, 0xffffffff
cmp ebx, esi
sete dl
call fcn.10003461
cmp ebx, esi
cmove ebx, esi
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 1
cmp ebx, esi
jne 0x10003e9f
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
push dword [ebp - 0x3c]
lea edx, [ebp - 0x24]
call fcn.100035ed
pop ecx
pop ecx
cmp eax, esi
jne 0x10003ec0
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
cmp edi, esi
jne 0x10003edd
call fcn.10001bef
mov dword [ebp - 0x2c], eax
or edi, 0xffffffff
mov dword [ebp - 0x30], 0x2719
mov eax, 0x2719
jmp 0x10003f0a
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
lea ecx, [ebp - 0x30]
or edi, 0xffffffff
cmp esi, edi
sete dl
call fcn.10003461
cmp esi, edi
jne 0x10003f05
mov eax, dword [ebp - 0x30]
mov esi, edi
jmp 0x10003f0a
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], esi
push 2
pop ecx
mov byte [ebp - 4], cl
cmp esi, edi
jne 0x10003f1f
test eax, eax
jne 0x10003fcf
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x25], 0
push eax
push ecx
lea edx, [ebp - 0x25]
mov ecx, ebx
call fcn.100039d0
add esp, 0xc
test eax, eax
je 0x10003f4e
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
push 4
inc ecx
lea eax, [ebp - 0x34]
push eax
push ecx
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x25]
push 6
mov ecx, ebx
call fcn.10003926
add esp, 0x14
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x30]
mov byte [ebp - 0x25], 0
lea edx, [ebp - 0x25]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
call fcn.100039d0
add esp, 0xc
test eax, eax
je 0x10003f99
cmp dword [ebp - 0x30], 0
jne 0x10003fcf
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
push 4
inc ecx
lea eax, [ebp - 0x34]
push eax
push ecx
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x25]
push 6
mov ecx, esi
call fcn.10003926
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
add esp, 0x14
mov dword [eax], esi
mov dword [eax + 4], ebx
call fcn.10003ce6
call fcn.10022cbd
ret
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x30]
call fcn.10001b85
int3