Function at 0x47b4f0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x64], 0x10
push eax
push dword [edi]
mov dword [ebp - 0x68], 1
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x50], xmm0
movq qword [ebp - 0x40], xmm0
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x47b7d3
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.0047b7f0
add esp, 8
cmp eax, 1
je 0x47b5b3
cmp word [ebp - 0x4c], 2
mov byte [ebp - 0x38], 0
jne 0x47b577
push 2
push 0
push 0
push 0x32
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea eax, [ebp - 0x38]
push eax
push str.accept_new_connection
push str._s:__s_is_not_allowed_to_connect
push 0x4e66
push str.accept_new_connection
push esi
push 0
call fcn.00417540
add esp, 0x1c
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 1
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
movzx eax, byte [edi + 0x24]
mov byte [ebp - 0x3c], al
movzx eax, byte [edi + 0x25]
mov byte [ebp - 0x3b], al
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
test eax, eax
je 0x47b613
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call ebx
push eax
push str.accept_new_connection
push str._s:_getsockname___failed:__s
push 0x4e72
push str.accept_new_connection
push esi
push 0
call fcn.00417540
add esp, 0x20
mov di, word [ebp - 0x5c]
cmp di, 2
je 0x47b623
cmp di, 0x17
jne 0x47b66a
push 4
lea eax, [ebp - 0x68]
push eax
push 8
push 0xffff
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x47b666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call ebx
push eax
push str.accept_new_connection
push str._s:_setsockopt_SOL_SOCKET_SO_KEEPALIVE__failed:__s
push 0x4e89
push str.accept_new_connection
push esi
push 0
call fcn.00417540
add esp, 0x20
mov di, word [ebp - 0x5c]
mov eax, dword [esi + 0x7cd8]
test eax, eax
je 0x47b6fc
mov ecx, 0x55a49c
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47b6a0
test dl, dl
je 0x47b69c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47b6a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x47b680
xor eax, eax
jmp 0x47b6a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47b6fc
mov dword [ebp - 0x6c], 1
cmp di, 2
je 0x47b6bc
cmp di, 0x17
jne 0x47b6fc
push 4
lea eax, [ebp - 0x6c]
push eax
push 1
push 6
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x47b6fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call ebx
push eax
push str.accept_new_connection
push str._s:_setsockopt_IPPROTO_TCP_TCP_NODELAY__failed:__s
push 0x4e9c
push str.accept_new_connection
push esi
push 0
call fcn.00417540
add esp, 0x20
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 1
push eax
push 0x8004667e
push dword [ebp - 0x60]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x18]
push edi
mov byte [ebp - 0x3a], 0
call ebx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
sub ecx, eax
cmp dword [esi + 0x14], 0
jne 0x47b768
cmp ecx, dword [esi + 0x88]
jl 0x47b770
lea eax, [esi + 0x68]
mov dword [esi + 0x84], 1
push edi
push eax
call fcn.00482840
mov dword [esi + 0x84], 0
add esp, 8
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x48]
cmp dword [esi + 0x14], 0
je 0x47b733
cmp ecx, dword [esi + 0x88]
jge 0x47b7a3
mov eax, dword [esi + 0x44]
cdq
idiv dword [esi + 0x88]
mov ecx, dword [esi + 0x40]
movups xmm0, xmmword [ebp - 0x60]
lea eax, [edx + edx*4]
movups xmmword [ecx + eax*8], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ecx + eax*8 + 0x10], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [ecx + eax*8 + 0x20], xmm0
mov eax, dword [esi + 0x44]
inc eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
add esi, 0x4c
push esi
call ebx
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
je 0x47b7c7
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push ecx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054f742
mov esp, ebp
pop ebp
ret