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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x551ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x44
call fcn.00525ec0
push ebx
push esi
push edi
call fcn.0050cbc0
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.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
cmp esi, 0xffffffff
jne 0x42283e
or edi, esi
mov dword [esp + 0x20], edi
jmp 0x422857
xor edi, edi
call fcn.0050cbc0
mov ecx, eax
mov eax, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], esi
mov edi, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x5c], 0
cmp edi, 0xffffffff
jne 0x422885
neg eax
sbb eax, eax
test eax, fcn.00412cb0
je 0x422885
lea eax, [esp + 0x38]
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
mov dword [esp + 0x1c], 1
cmp edi, 0xffffffff
jne 0x4228a2
call fcn.0050cbc0
mov ecx, 0x2719
mov dword [esp + 0x38], ecx
jmp 0x4228df
push 0
call ebx
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0050cbc0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
test esi, esi
jne 0x4228e3
call fcn.0050cbc0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
pxor xmm0, xmm0
mov edx, 2
movdqa xmmword [esp + 0x40], xmm0
push 0x7f000001
mov dword [esp + 0x2c], 0x10
mov word [esp + 0x44], dx
call ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
push 0x10
xor eax, eax
push ecx
lea esi, [esp + 0x40]
mov ecx, edi
mov word [esp + 0x4a], ax
call fcn.00422590
add esp, 8
cmp eax, 0xffffffff
jne 0x422951
mov edx, dword [esp + 0x38]
neg edx
sbb edx, edx
test edx, fcn.00412cb0
je 0x422951
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
lea ecx, [esp + 0x40]
push ecx
push edi
lea esi, [esp + 0x40]
lea ecx, [esp + 0x30]
call fcn.00422600
add esp, 8
cmp eax, 0xffffffff
jne 0x42298c
mov edx, dword [esp + 0x38]
neg edx
sbb edx, edx
test edx, fcn.00412cb0
je 0x42298c
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
push 0x7f000001
call ebx
lea esi, [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.00422680
cmp eax, 0xffffffff
jne 0x4229c7
mov ecx, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
test ecx, fcn.00412cb0
je 0x4229c7
mov edx, esi
push edx
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
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 esi, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
cmp esi, 0xffffffff
jne 0x422a03
or ebx, esi
jmp 0x422a16
xor edi, edi
call fcn.0050cbc0
mov ecx, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov ebx, esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x5c], 1
cmp ebx, 0xffffffff
jne 0x422a42
neg ecx
sbb ecx, ecx
test ecx, fcn.00412cb0
je 0x422a42
lea eax, [esp + 0x38]
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
lea esi, [esp + 0x40]
mov ecx, ebx
call fcn.00423c20
add esp, 8
cmp eax, 0xffffffff
jne 0x422a7e
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
test eax, fcn.00412cb0
je 0x422a7e
mov ecx, esi
push ecx
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.004226e0
mov edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x5c], 2
cmp edi, 0xffffffff
jne 0x422abf
mov edx, dword [esp + 0x38]
neg edx
sbb edx, edx
test edx, fcn.00412cb0
je 0x422abf
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1f]
push edx
lea esi, [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x23], 0
call fcn.00422750
add esp, 8
test eax, eax
je 0x422b07
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
test eax, fcn.00412cb0
je 0x422b07
mov ecx, esi
push ecx
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
mov dword [esp + 0x1c], 1
cmp ebx, 0xffffffff
jne 0x422b28
call fcn.0050cbc0
mov ecx, 0x2719
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jmp 0x422b6e
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x20]
push edx
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
test esi, esi
jne 0x422b6a
call fcn.0050cbc0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea esi, [esp + 0x40]
mov ecx, edi
mov dword [esp + 0x2c], 1
mov byte [esp + 0x23], 0
call fcn.00422750
add esp, 8
test eax, eax
je 0x422bb7
mov edx, dword [esp + 0x38]
neg edx
sbb edx, edx
test edx, fcn.00412cb0
je 0x422bb7
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00413030
add esp, 4
mov dword [esp + 0x1c], 1
cmp edi, 0xffffffff
je 0x422bef
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea ecx, [esp + 0x20]
push ecx
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0050cbc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x422bf4
call fcn.0050cbc0
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [eax], edi
mov dword [esp + 0x30], ecx
mov dword [eax + 4], ebx
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x20]
cmp edi, ecx
je 0x422c3e
mov dword [esp + 0x38], 0
call fcn.0050cbc0
lea edx, [esp + 0x1b]
push 1
push edx
lea esi, [esp + 0x40]
mov ecx, edi
mov dword [esp + 0x44], eax
mov byte [esp + 0x23], 0
call fcn.00425eb0
add esp, 8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4