Function at 0x10037d50
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7112
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x100afbc0
mov dword [ebp - 0x204], eax
call fcn.1000d740
push 0x190
lea eax, [ebp - 0x1ec]
push 0
push eax
call fcn.1006e460
add esp, 0x10
lea eax, [ebp - 0x1ec]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x10037dd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str._:_d_:_u._n
call fcn.1000d740
add esp, 0xc
jmp 0x10038130
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10037e04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100afc18
call fcn.1000d740
add esp, 8
jmp 0x1003812a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x10037e2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100afc48
call fcn.1000d740
add esp, 8
jmp 0x10038123
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1ed], 0
push eax
call fcn.10042189
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x1ed]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x200]
push eax
push 0x10008e50
push 0x100d24d0
call fcn.10042e51
add esp, 0x10
test eax, eax
je 0x1003816e
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
call fcn.100421c3
mov ecx, dword [0x100d24cc]
add esp, 4
call fcn.10023800
movzx eax, ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov ecx, 2
mov dword [ebp - 0x1fc], eax
push eax
movzx esi, ax
mov word [ebp - 0x30], cx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10037f3c
mov eax, dword [ebp - 0x1fc]
movzx eax, ax
mov dword [ebp - 0x1f4], eax
lea ecx, [eax + 0xa]
mov dword [ebp - 0x1fc], ecx
nop
inc esi
movzx eax, si
mov dword [ebp - 0x14], eax
cmp eax, ecx
ja 0x10037f1f
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [ebp - 0x1fc]
test eax, eax
jne 0x10037ef0
jmp 0x10037f3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1f4]
push 0x100afc74
call fcn.1000d740
add esp, 0x10
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1ed], 0
push eax
call fcn.10042189
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x1ed]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x200]
push eax
push 0x10008e50
push 0x100d24d0
call fcn.10042e51
add esp, 0x10
test eax, eax
je 0x1003815c
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
call fcn.100421c3
mov ecx, dword [0x100d24cc]
lea eax, [ebp - 0x1f8]
add esp, 4
push eax
call fcn.100238d0
mov dword [ebp - 4], 4
push dword [ebp - 0x1f8]
movzx eax, si
push eax
push str.Port
call fcn.1002b1a0
push 0x10
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10037fef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._:_u._n
call fcn.1000d740
add esp, 8
jmp 0x100380f2
mov eax, dword [ebp - 0x204]
push 8
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x20c], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1003802e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100afcd0
call fcn.1000d740
add esp, 8
jmp 0x100380f2
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x210]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov esi, eax
cmp esi, 2
jae 0x100380dd
mov eax, dword [ebp - 0x204]
cmp eax, dword [ebp + esi*4 - 0x210]
je 0x100380ce
push 0x2c
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.1006e460
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x208]
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x5c], 8
je 0x100380bf
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x10
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_accept]
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x204]
call fcn.10037b80
jmp 0x1003802e
push str.._n
call fcn.1000d740
add esp, 4
jmp 0x100380f2
push 0x100afd4c
call fcn.1000d740
add esp, 4
jmp 0x100380f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0x100afd14
call fcn.1000d740
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10038117
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x208]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str...._n
call fcn.1000d740
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
push eax
call fcn.100421e4
add esp, 4
test al, al
je 0x100381c0
jmp 0x1003819f
lea eax, [ebp - 0x18]
push eax
call fcn.100421e4
add esp, 4
test al, al
je 0x100381c0
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.1000afd0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.10017ed0
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.1000afd0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.10017ed0
call fcn.10042e69
int3