Function at 0x47b480
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Resume thread
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5cd100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x44], eax
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.005789d4
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov eax, dword [esi + 0x10]
or ebp, 0xffffffff
cmp eax, ebp
je 0x47b4d9
mov dword [esp + 0x50], ebp
lea ecx, [esp + 0x18]
call fcn.0057897a
xor eax, eax
jmp 0x47b7af
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
call edi
cmp eax, ebp
mov dword [esi + 0x10], eax
jne 0x47b503
mov dword [esp + 0x54], ebp
lea ecx, [esp + 0x1c]
call fcn.0057897a
xor eax, eax
jmp 0x47b7ae
push 6
push 1
push 2
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea ecx, [esp + 0x17]
push ecx
push 4
push 0xffff
push edx
mov dword [esi + 0x14], eax
mov byte [esp + 0x27], 1
call edi
mov ecx, dword [esi + 0x14]
push 1
lea eax, [esp + 0x17]
push eax
push 4
push 0xffff
push ecx
call edi
mov ecx, dword [0x661414]
lea eax, [ecx + 0x14]
mov edx, eax
mov edi, dword [edx]
mov dword [esp + 0x28], edi
mov edi, dword [edx + 4]
mov dword [esp + 0x2c], edi
mov edi, dword [edx + 8]
mov dword [esp + 0x30], edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], eax
movzx ecx, word [ecx + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
add eax, 4
push eax
call ebp
mov edx, dword [0x6613bc]
mov word [esp + 0x3a], ax
cmp dword [edx + 0x16c], ebx
jne 0x47b5b0
mov dword [esp + 0x2c], ebx
mov ecx, dword [esi + 0x14]
push 0x10
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x10]
push 0x10
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x47b66d
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x18]
call fcn.00411760
mov byte [esp + 0x54], 1
mov edx, dword [esp + 0x2a]
mov edi, dword [eax]
push edx
call ebp
movzx eax, ax
push eax
push edi
push 0x3ec1
push 3
push 0x661308
call fcn.004e72e0
add esp, 0x14
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x14]
call fcn.00401b70
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47b657
mov ecx, dword [0x661414]
call fcn.004929e0
movzx eax, ax
push eax
call ebp
mov ecx, dword [0x661414]
mov word [esp + 0x2a], ax
mov word [ecx + 0x16], ax
jmp 0x47b65f
mov dword [esp + 0x2c], 0
inc edi
cmp edi, 5
mov dword [esp + 0x18], edi
jl 0x47b5c5
mov eax, dword [0x661414]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x47b699
lea edx, [esp + 0x14]
push edx
add eax, 0x14
push eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [0x661414]
test ebx, ebx
je 0x47b72f
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x18]
call fcn.00411760
mov byte [esp + 0x54], 2
mov edi, dword [eax]
mov edx, dword [0x661414]
xor eax, eax
mov ax, word [edx + 0x16]
push eax
call ebp
movzx ecx, ax
push ecx
push edi
push 0x3ec4
push 3
push 0x661308
call fcn.004e72e0
add esp, 0x14
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x661414]
xor ecx, ecx
mov cx, word [eax + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
push str.Network_Listening_On_Port:__d
push 0x661308
call fcn.004e9a20
add esp, 0xc
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 8
push eax
mov eax, dword [esi + 0x10]
push eax
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
push 8
push eax
push ecx
call edi
mov edx, dword [esi + 0x14]
mov edi, dword [sym.imp.WS2_32.dll_listen]
push 0x100
push edx
call edi
mov eax, dword [esi + 0x10]
push 0x100
push eax
call edi
push 1
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 4
push 0
push esi
push 0x47b420
call fcn.005b169c
mov edx, dword [eax + 0x28]
mov dword [esi + 0x18], edx
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0057897a
mov eax, 1
pop edi
mov ecx, dword [esp + 0x48]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop ebx
call fcn.0057981f
add esp, 0x48
ret