Function at 0x4a6a02b4
Capabilities:
Create tcp socket
Create thread
Create udp socket
Resume thread
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd0
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
push 0xc
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
test ebx, ebx
je 0x4a6a04f8
mov dword [ebx], ebp
mov dword [ebx + 8], edi
test edi, edi
je 0x4a6a02f0
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 4], eax
jmp 0x4a6a02fe
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
je 0x4a6a04ee
mov word [esp + 0x20], 2
mov word [esp + 0x22], bp
cmp dword [esp], 0
je 0x4a6a03d0
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x20
mov eax, dword [esp]
call fcn.4a607ee8
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 0x15], eax
xor eax, eax
mov dword [esp + 0x19], eax
push 0x10
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_bind
inc eax
je 0x4a6a03a7
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
je 0x4a6a03a7
push 4
lea eax, [esp + 0x14]
push eax
push 3
push 0
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
je 0x4a6a03a7
push 8
lea eax, [esp + 0x19]
push eax
push 5
push 0
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4a6a03ab
xor eax, eax
jmp 0x4a6a03ad
mov al, 1
mov byte [esp + 0x14], al
xor eax, eax
mov dword [esp + 0xc], eax
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
jmp 0x4a6a0466
test edi, edi
je 0x4a6a0435
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 1
push 0x10
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_bind
inc eax
je 0x4a6a0429
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
je 0x4a6a0429
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4a6a042d
xor eax, eax
jmp 0x4a6a042f
mov al, 1
mov byte [esp + 0x14], al
jmp 0x4a6a0466
xor eax, eax
mov dword [esp + 0x24], eax
push 0x10
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_bind
inc eax
je 0x4a6a045c
push 5
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_listen
inc eax
jne 0x4a6a0460
xor eax, eax
jmp 0x4a6a0462
mov al, 1
mov byte [esp + 0x14], al
cmp byte [esp + 0x14], 0
je 0x4a6a04e1
lea eax, [esp + 4]
push eax
push 4
push ebx
push 0x4a6a0014
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4a6a04e1
cmp dword [esp], 0
jne 0x4a6a04a6
test edi, edi
jne 0x4a6a04a0
mov dword [0x4a6cc438], ebp
jmp 0x4a6a04a6
mov dword [0x4a6cc43c], ebp
push 0xc
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
push 2
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, esi
jne 0x4a6a04ee
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_closesocket
test esi, esi
jne 0x4a6a04f8
push ebx
call sub.kernel32.dll_LocalFree_1
mov eax, esi
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret