Function at 0x49d59c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d85f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 0
push 1
push 2
call sub.ws2_32.dll_WSASocketA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49d620
lea eax, [ebp - 0x20]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x49d878
call fcn.0040e6fc
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0049d574
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
mov word [ebp - 0x1c], 2
push edi
call sub.ws2_32.dll_htons
mov word [ebp - 0x1a], ax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_bind
inc eax
jne 0x49d692
lea eax, [ebp - 0xc]
call fcn.00483dd8
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x38], 0
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x49d8a0
call fcn.0040e6fc
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0049d574
lea edx, [esi + esi*2]
lea eax, [ebx + edx*4 + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + edx*4 + 0x48], ecx
push 0
push eax
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
jne 0x49d6f5
lea eax, [ebp - 0xc]
call fcn.00483dd8
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x49d8cc
call fcn.0040e6fc
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.0049d574
push 0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x10
mov eax, dword [0x4a5af4]
push eax
push 0xc8000006
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_WSAIoctl
inc eax
jne 0x49d75d
lea eax, [ebp - 0xc]
call fcn.00483dd8
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
lea eax, [ebp - 0x44]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x49d8f8
call fcn.0040e6fc
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.0049d574
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x10
mov eax, dword [0x4a5b10]
push eax
push 0xc8000006
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_WSAIoctl
inc eax
jne 0x49d7cb
lea eax, [ebp - 0xc]
call fcn.00483dd8
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x49d928
call fcn.0040e6fc
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.0049d574
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_listen
inc eax
jne 0x49d820
lea eax, [ebp - 0xc]
call fcn.00483dd8
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx + 0x20], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x49d964
call fcn.0040e6fc
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.0049d574
mov esi, 0x80
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0049d9ec
dec esi
jne 0x49d825
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d866
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00404c60
lea eax, [ebp - 0x2c]
call fcn.00404c3c
lea eax, [ebp - 0x20]
call fcn.00404c3c
ret