Function at 0x4d55e0
Capabilities:
Create thread
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5056db
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1bc], edi
cmp dword [0x5444b8], 0
jne 0x4d5897
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
lea eax, [ebp - 0x1b0]
push eax
push 0x202
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d584d
xorps xmm0, xmm0
mov dword [ebp - 0x1b4], eax
movdqu xmmword [ebp - 0x1e4], xmm0
mov dword [ebp - 0x1e0], 2
movdqu xmmword [ebp - 0x1d4], xmm0
mov dword [ebp - 0x1dc], 1
mov dword [ebp - 0x1d8], 6
mov dword [ebp - 0x1e4], 1
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4d56a9
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1b8], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1b8]
mov dword [ebp - 4], 0
push 0x51e920
push eax
call fcn.00471050
mov esi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
add esp, 0xc
push eax
lea eax, [ebp - 0x1e4]
push eax
push esi
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4d5870
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x4d5870
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x4d5820
push 4
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 1
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4d582c
mov eax, dword [ebp - 0x1b4]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
push dword [ebp - 0x1b4]
mov edi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
je 0x4d582c
mov edi, dword [ebp - 0x1bc]
push accept
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4d5876
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d5876
cmp word [ebp - 0x20], 2
jne 0x4d57dc
cmp dword [ebp - 0x1b8], 0x10
jne 0x4d57dc
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 0x10], ax
push 0
push 0
push edi
push 0x4d5d20
push 0
push 0
mov dword [edi + 0x18], 0
call fcn.004da73c
add esp, 0x18
mov dword [ebp - 0x1bc], eax
lea ecx, [ebp - 0x1bc]
mov dword [0x5444b8], 1
mov dword [ebp - 0x1c0], 1
call fcn.00481400
jmp 0x4d582c
push dword [ebp - 0x1b4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d584d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d5897
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4d5853