Function at 0x4e115f
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 0x4e1180
push 0
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e13e7
push dword [esi + 4]
call fcn.005183dc
pop ecx
cmp eax, 0x5a
jbe 0x4e11b7
push 0
push 0x1452
call fcn.00415c87
push eax
push dword [esi + 4]
push 0x535c54
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e13e7
push dword [esi + 4]
call fcn.004e0686
test eax, eax
je 0x4e11ec
push 0
push 0x1453
call fcn.00415c87
push eax
push dword [esi + 4]
push str.__socklisten:__s__s
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4e13e7
xor edi, edi
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4e1215
push ebx
call fcn.0052175c
pop ecx
mov edi, eax
test di, di
ja 0x4e1215
push 3
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e13e7
call fcn.004e043c
mov ebx, eax
test ebx, ebx
jne 0x4e1232
push 2
push 0
push dword [esi]
push 0
call fcn.0045abd0
jmp 0x4e13e7
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, 0x533e84
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.00526bc8
pop ecx
mov esi, eax
mov dword [ebx + 0x114], esi
mov dword [ebx + 0x118], esi
test di, di
jne 0x4e130c
push 0
push 0
lea eax, [ebx + 0xca]
push eax
mov dx, word [0x52c432]
push edx
mov cx, word [0x52c430]
push ecx
call fcn.004cb44e
mov esi, eax
mov dword [ebx + 0x120], esi
cmp esi, 0xffffffff
jne 0x4e13ca
push ebx
call fcn.004e0575
push 0
push 0x1454
call fcn.00415c87
push eax
push 0x535c84
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4e13e7
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx + 0x120], esi
cmp esi, 0xffffffff
jne 0x4e1350
push ebx
call fcn.004e0575
push 0
push 0x1455
call fcn.00415c87
push eax
push 0x535c97
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4e13e7
mov dx, word [ebx + 0xca]
push edx
push dword [ebx + 0x120]
call fcn.004cb3a4
test eax, eax
jne 0x4e1390
push ebx
call fcn.004e0575
push 0
push 0x1456
call fcn.00415c87
push eax
push 0x535caa
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4e13e7
push 5
push dword [ebx + 0x120]
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4e13ca
push ebx
call fcn.004e0575
push 0
push 0x145a
call fcn.00415c87
push eax
push str.__socklisten:__s
push 0x54b69c
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4e13e7
push 8
push 0x437
push dword [0x537420]
push dword [ebx + 0x120]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4