Function at 0x46ba00
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d57f1
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ba54
push 0x4f114c
call fcn.0049fbd0
push eax
push 0x4f114c
jmp 0x46bb5b
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
xorps xmm0, xmm0
movups xmmword [ebp - 0x124], xmm0
mov cx, word [eax + 8]
mov word [ebp - 0x124], cx
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x120]
push eax
call fcn.004a7c70
add esp, 0xc
push 0x5ab3
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x122], ax
lea eax, [ebp - 0x124]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x46bae5
push 0x4f117c
call fcn.0049fbd0
push eax
push 0x4f117c
jmp 0x46bb5b
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0x10
push eax
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46bb1a
push 0x4f11a8
call fcn.0049fbd0
push eax
push 0x4f11a8
jmp 0x46bb5b
push 0
push esi
call dword [sym.imp.WS2_32.dll_listen]
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [0x5174a4], eax
cmp eax, 0xffffffff
jne 0x46bb4a
push 0x4f11dc
call fcn.0049fbd0
push eax
push 0x4f11dc
jmp 0x46bb5b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call fcn.0049fbd0
push eax
push 0
call fcn.0049fd60
add esp, 0xc
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
call fcn.0049fdc0
test eax, eax
je 0x46bc2e
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push 0x4f14b8
push eax
call fcn.0049f790
mov esi, eax
push 0x4e46d4
mov byte [ebp - 4], 1
call fcn.0049fbd0
push eax
push 0x4e46d4
call fcn.0049fd60
add esp, 0x18
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.0049f8a0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0049f770
push eax
call fcn.00405a70
add esp, 4
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x46bbff
call fcn.0049fda0
mov ecx, dword [ebp - 0x134]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46bc12
call fcn.0049fda0
mov ecx, dword [ebp - 0x130]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x46bd08
call fcn.0049fda0
jmp 0x46bd08
push 0
call fcn.0046aec0
add esp, 4
test eax, eax
je 0x46bc6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 4
mov edx, 0x4f1568
mov ecx, 0x4f1518
cmovne ecx, edx
push ecx
call fcn.00405a70
add esp, 4
push dword [0x5174a4]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x46bd08
mov ecx, dword [0x5174a0]
mov dword [0x51c784], 3
cmp ecx, 0xffffffff
je 0x46bcfb
mov eax, dword [0x5174c8]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 8
lea eax, [ebp - 0x13c]
mov dword [0x517190], 9
push eax
push ecx
mov dword [ebp - 0x13c], 0
call sub.FLTLIB.DLL_FilterSendMessage
push 0
test eax, eax
jne 0x46bcea
push 1
call fcn.0046ea80
push 1
mov byte [0x51c788], 1
call fcn.0046d440
add esp, 0xc
push 0xffffffffffffffff
push dword [0x51c730]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
jmp 0x46bd0a
push 0
call fcn.0046ea80
add esp, 8
mov byte [0x51c788], 0
push 0x4f1484
call fcn.00405a70
add esp, 4
xor al, al
mov byte [ebp - 0x125], al
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 4], 0xa
test ecx, ecx
je 0x46bd2c
call fcn.0049fda0
mov al, byte [ebp - 0x125]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret