Function at 0x457e20
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49b808
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4bfa48]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4bfa48]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
call fcn.0047a6a0
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.0047a6a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp esi, 0xffffffff
jne 0x457e9c
or esi, esi
jmp 0x457eaf
xor edi, edi
call fcn.0047a6a0
mov ecx, eax
mov eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x60], 0
cmp esi, 0xffffffff
jne 0x457ede
neg eax
sbb eax, eax
test eax, fcn.00408230
je 0x457ede
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.00456780
mov dword [esp + 0x20], 1
cmp esi, 0xffffffff
jne 0x457eff
call fcn.0047a6a0
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x457f44
push 0
call ebx
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0047a6a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
test esi, esi
jne 0x457f40
call fcn.0047a6a0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
xor eax, eax
mov edx, 2
mov dword [esp + 0x40], eax
push str.127.0.0.1
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x44], dx
call edi
lea ecx, [esp + 0x10]
push ecx
push 0x10
lea edx, [esp + 0x48]
mov dword [esp + 0x4c], eax
push edx
xor eax, eax
push esi
mov word [esp + 0x52], ax
call fcn.0044dd50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x457fb8
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.00408230
je 0x457fb8
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.00456780
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.0044e0c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x457ff4
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.00408230
je 0x457ff4
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.00456780
push str.127.0.0.1
call edi
lea ecx, [esp + 0x10]
push ecx
push bind
push esi
mov dword [esp + 0x50], eax
call fcn.0044de30
add esp, 0xc
cmp eax, 0xffffffff
jne 0x458036
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.00408230
je 0x458036
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.00456780
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.0047a6a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp edi, 0xffffffff
jne 0x458070
mov dword [esp + 0x24], edi
jmp 0x458085
xor esi, esi
call fcn.0047a6a0
mov ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov byte [esp + 0x60], 1
cmp eax, 0xffffffff
jne 0x4580b2
neg ecx
sbb ecx, ecx
test ecx, fcn.00408230
je 0x4580b2
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.00456780
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0044ddc0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4580ed
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.00408230
je 0x4580ed
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.00456780
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
jne 0x458104
call fcn.0047a6a0
mov ecx, 0x2719
or esi, esi
jmp 0x458146
push 0
call ebx
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
call fcn.0047a6a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp esi, 0xffffffff
jne 0x45813d
or esi, esi
jmp 0x45814e
xor edi, edi
call fcn.0047a6a0
mov ecx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], esi
mov byte [esp + 0x60], 2
cmp esi, 0xffffffff
jne 0x458177
neg ecx
sbb ecx, ecx
test ecx, fcn.00408230
je 0x458177
push str.socket_select_interrupter
lea edx, [esp + 0x14]
push edx
call fcn.00456780
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x8004667e
lea edx, [esp + 0x27]
push edx
push edi
mov dword [esp + 0x40], 1
mov byte [esp + 0x2f], 0
call fcn.0044e140
add esp, 0x14
test eax, eax
je 0x4581c7
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.00408230
je 0x4581c7
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.00456780
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
jne 0x4581e8
call fcn.0047a6a0
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x45822c
push 0
call ebx
push 4
lea edx, [esp + 0x24]
push edx
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0047a6a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x458226
call fcn.0047a6a0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x8004667e
lea edx, [esp + 0x27]
push edx
mov edi, 1
push esi
mov dword [esp + 0x40], edi
mov byte [esp + 0x2f], 0
call fcn.0044e140
add esp, 0x14
test eax, eax
je 0x458279
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.00408230
je 0x458279
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.00456780
mov dword [esp + 0x20], edi
cmp esi, 0xffffffff
je 0x4582a8
push 0
call ebx
push 4
lea edx, [esp + 0x24]
push edx
push edi
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0047a6a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x4582ad
call fcn.0047a6a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [esp + 0x60], 0xffffffff
cmp esi, 0xffffffff
je 0x4582f6
mov dword [esp + 0x10], 0
call fcn.0047a6a0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x23]
push eax
push esi
mov byte [esp + 0x2b], 0
call fcn.0044f1e0
add esp, 0x10
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0047beb8
mov esp, ebp
pop ebp
ret