Function at 0x4579db
Capabilities:
Create raw socket
Create tcp socket
Get socket status
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x678fdc
push str.ReplayLocalServer
push 3
mov ebx, ecx
call fcn.0042fdf6
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
je 0x457c54
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 2
pop eax
mov ecx, ebx
mov word [ebp - 0x14], ax
call fcn.00456670
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
push eax
call edi
push str.127.0.0.1
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0xc]
mov byte [ebp - 0x129], 0
call esi
cmp eax, 0xffffffff
jne 0x457a93
mov ecx, ebx
call fcn.00456670
mov word [ebx], ax
push eax
call edi
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0xc]
call esi
cmp eax, 0xffffffff
je 0x457a9c
mov byte [ebp - 0x129], 1
jmp 0x457aa1
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebx + 8]
test eax, eax
je 0x457aaf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [ebp - 0x129], 0
je 0x457c54
push 0x40
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
lea eax, [ebp - 0x138]
push eax
push 0x8004667e
push dword [ebx + 0xc]
mov dword [ebp - 0x138], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
inc dword [ebx + 0x10]
xor eax, eax
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
and dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0x64
cmp byte [ebx + 0x114], al
jne 0x457c54
push 0x41
pop ecx
lea esi, [ebx + 0x10]
lea edi, [ebp - 0x128]
lea eax, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x128]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x457c47
mov dword [ebp - 0x134], edi
cmp dword [ebx + 0x10], edi
jbe 0x457c47
lea eax, [ebx + 0x14]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x130]
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x457c2b
mov eax, dword [ebp - 0x130]
mov eax, dword [eax]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jne 0x457c23
cmp dword [ebx + 0x10], 0x40
jae 0x457c2b
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x13c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x457c06
lea eax, [ebp - 0x138]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebx + 0x10]
xor eax, eax
test ecx, ecx
je 0x457bf4
lea edx, [ebx + 0x14]
cmp dword [edx], edi
je 0x457bf4
inc eax
add edx, 4
cmp eax, ecx
jb 0x457be8
cmp eax, ecx
jne 0x457c2b
cmp ecx, 0x40
jae 0x457c2b
mov dword [ebx + eax*4 + 0x14], edi
inc dword [ebx + 0x10]
jmp 0x457c2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Run_accept_error_u
push str.ReplayLocalServer
push 1
call fcn.0042fdf6
add esp, 0x10
jmp 0x457c2b
push eax
mov ecx, ebx
call fcn.004575ca
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x134]
add dword [ebp - 0x130], 4
cmp eax, dword [ebx + 0x10]
jb 0x457b5f
cmp byte [ebx + 0x114], 0
je 0x457b18
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x457c6f
lea esi, [ebx + 0x14]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
inc edi
add esi, 4
cmp edi, dword [ebx + 0x10]
jb 0x457c5e
mov ecx, dword [ebp - 4]
or dword [ebx + 0xc], 0xffffffff
and dword [ebx + 0x10], 0
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469ae8
leave
ret