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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x4a311d
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a33a6
mov edx, dword [esi + 4]
push edx
call fcn.004bceac
pop ecx
cmp eax, 0x5a
jbe 0x4a3156
push 0
push 0x1452
call fcn.0040a8fc
push eax
mov ecx, dword [esi + 4]
push ecx
push 0x4d3140
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a33a6
mov edx, dword [esi + 4]
push edx
call fcn.004a2614
test eax, eax
je 0x4a318d
push 0
push 0x1453
call fcn.0040a8fc
push eax
mov ecx, dword [esi + 4]
push ecx
push str.__socklisten:__s__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a33a6
xor edi, edi
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4a31b7
push ebx
call fcn.004c4ccc
pop ecx
mov edi, eax
test di, di
ja 0x4a31b7
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a33a6
call fcn.004a23fc
mov ebx, eax
test ebx, ebx
jne 0x4a31d5
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a33a6
mov edx, dword [esi + 4]
push esi
push edi
mov esi, ebx
mov edi, edx
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, 0x4d1b3a
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.004c92e8
pop ecx
mov esi, eax
mov dword [ebx + 0x10c], esi
mov dword [ebx + 0x110], esi
test di, di
jne 0x4a32ad
push 0
lea eax, [ebx + 0xca]
push eax
mov dx, word [0x4cc5ce]
push edx
mov cx, word [0x4cc5cc]
push ecx
call fcn.004900e4
mov esi, eax
mov dword [ebx + 0x114], esi
cmp esi, 0xffffffff
jne 0x4a3387
push ebx
call fcn.004a250c
push 0
push 0x1454
call fcn.0040a8fc
push eax
push 0x4d3170
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a33a6
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx + 0x114], esi
cmp esi, 0xffffffff
jne 0x4a32f1
push ebx
call fcn.004a250c
push 0
push 0x1455
call fcn.0040a8fc
push eax
push 0x4d3183
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a33a6
mov word [ebp - 0x10], 2
xor edx, edx
mov dword [ebp - 0xc], edx
mov cx, word [ebx + 0xca]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebx + 0x114]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4a334c
push ebx
call fcn.004a250c
push 0
push 0x1456
call fcn.0040a8fc
push eax
push 0x4d3196
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a33a6
push 5
mov edx, dword [ebx + 0x114]
push edx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4a3387
push ebx
call fcn.004a250c
push 0
push 0x145a
call fcn.0040a8fc
push eax
push str.__socklisten:__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a33a6
push 8
push 0x437
mov edx, dword [0x4d429c]
push edx
mov ecx, dword [ebx + 0x114]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4