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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x4fa6e2
push 0
push 0
push dword [esi]
push 0
call fcn.00467118
jmp 0x4fa949
push dword [esi + 4]
call fcn.005395b8
pop ecx
cmp eax, 0x5a
jbe 0x4fa719
push 0
push 0x1452
call fcn.0041c35b
push eax
push dword [esi + 4]
push 0x559ae4
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4fa949
push dword [esi + 4]
call fcn.004f9be6
test eax, eax
je 0x4fa74e
push 0
push 0x1453
call fcn.0041c35b
push eax
push dword [esi + 4]
push str.__socklisten:__s__s
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4fa949
xor edi, edi
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4fa777
push ebx
call fcn.00542dbc
pop ecx
mov edi, eax
test di, di
ja 0x4fa777
push 3
push 0
push dword [esi]
push 0
call fcn.00467118
jmp 0x4fa949
call fcn.004f999c
mov ebx, eax
test ebx, ebx
jne 0x4fa794
push 2
push 0
push dword [esi]
push 0
call fcn.00467118
jmp 0x4fa949
mov eax, dword [esi + 4]
push esi
push edi
mov esi, ebx
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [ebx + 0x65]
push edi
mov esi, eax
mov edi, 0x55781c
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov word [ebx + 0xca], di
mov dword [ebx + 0xe4], 1
push 0
call fcn.00548d28
pop ecx
mov esi, eax
mov dword [ebx + 0x114], esi
mov dword [ebx + 0x118], esi
test di, di
jne 0x4fa86e
push 0
push 0
lea eax, [ebx + 0xca]
push eax
mov dx, word [0x54f356]
push edx
mov cx, word [0x54f354]
push ecx
call fcn.004e3612
mov esi, eax
mov dword [ebx + 0x120], esi
cmp esi, 0xffffffff
jne 0x4fa92c
push ebx
call fcn.004f9ad5
push 0
push 0x1454
call fcn.0041c35b
push eax
push 0x559b14
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4fa949
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx + 0x120], esi
cmp esi, 0xffffffff
jne 0x4fa8b2
push ebx
call fcn.004f9ad5
push 0
push 0x1455
call fcn.0041c35b
push eax
push 0x559b27
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4fa949
mov dx, word [ebx + 0xca]
push edx
push dword [ebx + 0x120]
call fcn.004e3568
test eax, eax
jne 0x4fa8f2
push ebx
call fcn.004f9ad5
push 0
push 0x1456
call fcn.0041c35b
push eax
push 0x559b3a
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4fa949
push 5
push dword [ebx + 0x120]
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4fa92c
push ebx
call fcn.004f9ad5
push 0
push 0x145a
call fcn.0041c35b
push eax
push str.__socklisten:__s
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4fa949
push 8
push 0x437
push dword [0x55b3c8]
push dword [ebx + 0x120]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4