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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0548
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c5cd8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
call fcn.0047ec30
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.0047ec30
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 0x45bd2c
or esi, esi
jmp 0x45bd3f
xor edi, edi
call fcn.0047ec30
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 0x45bd6e
neg eax
sbb eax, eax
test eax, fcn.004206b0
je 0x45bd6e
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.0045a680
mov dword [esp + 0x20], 1
cmp esi, 0xffffffff
jne 0x45bd8f
call fcn.0047ec30
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x45bdd4
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.0047ec30
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 0x45bdd0
call fcn.0047ec30
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.00451c40
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45be48
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.004206b0
je 0x45be48
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a680
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.00451fb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45be84
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.004206b0
je 0x45be84
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.0045a680
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.00451d20
add esp, 0xc
cmp eax, 0xffffffff
jne 0x45bec6
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.004206b0
je 0x45bec6
push str.socket_select_interrupter
lea eax, [esp + 0x14]
push eax
call fcn.0045a680
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.0047ec30
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 0x45bf00
mov dword [esp + 0x24], edi
jmp 0x45bf15
xor esi, esi
call fcn.0047ec30
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 0x45bf42
neg ecx
sbb ecx, ecx
test ecx, fcn.004206b0
je 0x45bf42
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a680
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.00451cb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45bf7d
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.004206b0
je 0x45bf7d
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a680
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
jne 0x45bf94
call fcn.0047ec30
mov ecx, 0x2719
or esi, esi
jmp 0x45bfd6
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.0047ec30
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 0x45bfcd
or esi, esi
jmp 0x45bfde
xor edi, edi
call fcn.0047ec30
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 0x45c007
neg ecx
sbb ecx, ecx
test ecx, fcn.004206b0
je 0x45c007
push str.socket_select_interrupter
lea edx, [esp + 0x14]
push edx
call fcn.0045a680
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.00452030
add esp, 0x14
test eax, eax
je 0x45c057
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.004206b0
je 0x45c057
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a680
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
jne 0x45c078
call fcn.0047ec30
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x45c0bc
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.0047ec30
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 0x45c0b6
call fcn.0047ec30
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.00452030
add esp, 0x14
test eax, eax
je 0x45c109
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.004206b0
je 0x45c109
push str.socket_select_interrupter
lea ecx, [esp + 0x14]
push ecx
call fcn.0045a680
mov dword [esp + 0x20], edi
cmp esi, 0xffffffff
je 0x45c138
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.0047ec30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x45c13d
call fcn.0047ec30
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 0x45c186
mov dword [esp + 0x10], 0
call fcn.0047ec30
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.00453000
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.00480438
mov esp, ebp
pop ebp
ret