Function at 0x4722b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x62c268
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
call fcn.005acf90
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.005acf90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
cmp edi, 0xffffffff
jne 0x472331
or edi, edi
mov dword [esp + 0x20], edi
jmp 0x472344
call fcn.005acf90
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x70], 0
cmp edi, 0xffffffff
jne 0x472367
test eax, eax
je 0x472367
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
mov dword [esp + 0x3c], 1
cmp edi, 0xffffffff
je 0x4723a2
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.005acf90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4723a7
call fcn.005acf90
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x10
mov eax, 2
movdqa xmmword [esp + 0x44], xmm0
push str.127.0.0.1
mov word [esp + 0x48], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x46], ax
cmp edi, 0xffffffff
jne 0x4723f4
call fcn.005acf90
mov ecx, 0x2719
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jmp 0x472475
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0x10
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x18], eax
call fcn.005acf90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x472470
call fcn.005acf90
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x4c]
call fcn.00471c20
add esp, 8
cmp eax, 0xffffffff
jne 0x472487
cmp dword [esp + 0x34], 0
je 0x472487
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
cmp eax, 0xffffffff
jne 0x47243e
test ecx, ecx
je 0x47243e
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x48], eax
mov ecx, edi
lea eax, [esp + 0x34]
push eax
call fcn.00471730
add esp, 4
cmp eax, 0xffffffff
jne 0x4724bf
cmp dword [esp + 0x34], 0
je 0x4724bf
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esp + 0x18], eax
call fcn.005acf90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp esi, 0xffffffff
jne 0x472503
or esi, esi
mov dword [esp + 0x18], esi
jmp 0x472516
call fcn.005acf90
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], esi
mov byte [esp + 0x70], 1
cmp esi, 0xffffffff
jne 0x47254d
test eax, eax
je 0x472536
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
call fcn.005acf90
mov ecx, 0x2719
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jmp 0x4725d3
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x1c], eax
call fcn.005acf90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x4725ce
call fcn.005acf90
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call fcn.00471320
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
mov byte [esp + 0x70], 2
cmp esi, 0xffffffff
jne 0x4725e5
cmp dword [esp + 0x34], 0
je 0x4725e5
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
cmp eax, 0xffffffff
jne 0x472599
test ecx, ecx
je 0x472599
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 1
push eax
push ecx
lea edx, [esp + 0x23]
mov byte [esp + 0x23], 0
mov ecx, edi
call fcn.00471cc0
add esp, 0xc
test eax, eax
je 0x472628
cmp dword [esp + 0x34], 0
je 0x472628
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
mov dword [esp + 0x3c], 1
cmp edi, 0xffffffff
jne 0x472644
call fcn.005acf90
mov dword [esp + 0x34], 0x2719
jmp 0x47268b
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x1c], eax
call fcn.005acf90
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
jne 0x47268f
call fcn.005acf90
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 1
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x1b], 0
push eax
push ecx
lea edx, [esp + 0x23]
mov ecx, esi
call fcn.00471cc0
add esp, 0xc
test eax, eax
je 0x4726ce
cmp dword [esp + 0x34], 0
je 0x4726ce
mov edx, str.socket_select_interrupter
lea ecx, [esp + 0x34]
call fcn.00417c50
mov dword [esp + 0x3c], 1
cmp esi, 0xffffffff
je 0x472706
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.005acf90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x47270b
call fcn.005acf90
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
mov dword [ecx], esi
mov esi, dword [esp + 0x20]
mov dword [ecx + 4], eax
cmp esi, 0xffffffff
je 0x47275d
xorps xmm0, xmm0
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x34], 0
call fcn.005acf90
mov dword [esp + 0x38], eax
lea edx, [esp + 0x17]
lea eax, [esp + 0x34]
mov byte [esp + 0x17], 0
push eax
push 1
mov ecx, esi
call fcn.004713c0
add esp, 8
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret