Function at 0x4d4928
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 0x4d494d
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d4bd6
mov edx, dword [esi + 4]
push edx
call fcn.00401318
pop ecx
cmp eax, 0x5a
jbe 0x4d4986
push 0
push 0x1452
call fcn.0041f178
push eax
mov ecx, dword [esi + 4]
push ecx
push 0x4fc67c
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d4bd6
mov edx, dword [esi + 4]
push edx
call fcn.004d3e38
test eax, eax
je 0x4d49bd
push 0
push 0x1453
call fcn.0041f178
push eax
mov ecx, dword [esi + 4]
push ecx
push 0x4fc694
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d4bd6
xor edi, edi
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4d49e7
push ebx
call fcn.00409a14
pop ecx
mov edi, eax
test di, di
ja 0x4d49e7
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d4bd6
call fcn.004d3bf8
mov ebx, eax
test ebx, ebx
jne 0x4d4a05
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d4bd6
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, 0x4fafc0
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.0040ef0c
pop ecx
mov esi, eax
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x114], esi
test di, di
jne 0x4d4add
push 0
lea eax, [ebx + 0xca]
push eax
mov dx, word [0x4f474a]
push edx
mov cx, word [0x4f4748]
push ecx
call fcn.004bf8c8
mov esi, eax
mov dword [ebx + 0x118], esi
cmp esi, 0xffffffff
jne 0x4d4bb7
push ebx
call fcn.004d3d24
push 0
push 0x1454
call fcn.0041f178
push eax
push 0x4fc6ac
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d4bd6
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx + 0x118], esi
cmp esi, 0xffffffff
jne 0x4d4b21
push ebx
call fcn.004d3d24
push 0
push 0x1455
call fcn.0041f178
push eax
push 0x4fc6bf
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d4bd6
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 + 0x118]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4d4b7c
push ebx
call fcn.004d3d24
push 0
push 0x1456
call fcn.0041f178
push eax
push 0x4fc6d2
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d4bd6
push 5
mov edx, dword [ebx + 0x118]
push edx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4d4bb7
push ebx
call fcn.004d3d24
push 0
push 0x145a
call fcn.0041f178
push eax
push 0x4fc6e5
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d4bd6
push 8
push 0x437
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [ebx + 0x118]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4