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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1288
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x4d0070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d10
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 [ebp - 0x34], edi
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], esi
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp edi, 0xffffffff
jne 0x421c49
or edi, edi
mov dword [ebp - 0x34], edi
jmp 0x421c5c
lea ecx, [ebp - 0x50]
call fcn.00404d10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], 0
mov esi, fcn.004032b0
cmp edi, 0xffffffff
jne 0x421c8a
xor edx, edx
mov eax, esi
test ecx, ecx
cmove eax, edx
test eax, eax
je 0x421c8a
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
jne 0x421ca7
call fcn.004051f0
mov dword [ebp - 0x2c], 0x2719
mov dword [ebp - 0x28], eax
jmp 0x421cf7
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
test edi, edi
jne 0x421cef
lea ecx, [ebp - 0x48]
call fcn.00404d10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x34]
mov esi, fcn.004032b0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x10
mov eax, 2
movups xmmword [ebp - 0x24], xmm0
push 0x7f000001
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x24]
xor eax, eax
mov ecx, edi
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x2c]
push eax
push 0x10
call fcn.00421010
add esp, 8
cmp eax, 0xffffffff
jne 0x421d55
xor ecx, ecx
mov eax, esi
cmp dword [ebp - 0x2c], ecx
cmove eax, ecx
test eax, eax
je 0x421d55
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x24]
call fcn.00421970
add esp, 8
cmp eax, 0xffffffff
jne 0x421d8a
xor ecx, ecx
mov eax, esi
cmp dword [ebp - 0x2c], ecx
cmove eax, ecx
test eax, eax
je 0x421d8a
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00421710
add esp, 4
cmp eax, 0xffffffff
jne 0x421dc6
xor ecx, ecx
mov eax, esi
cmp dword [ebp - 0x2c], ecx
cmove eax, ecx
test eax, eax
je 0x421dc6
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
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 [ebp - 0x3c], edi
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], esi
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp edi, 0xffffffff
jne 0x421e06
or edi, edi
mov dword [ebp - 0x3c], edi
jmp 0x421e19
lea ecx, [ebp - 0x60]
call fcn.00404d10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
mov esi, fcn.004032b0
cmp edi, 0xffffffff
jne 0x421e44
xor edx, edx
mov eax, esi
test ecx, ecx
cmove eax, edx
test eax, eax
je 0x421e44
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push dword [ebp - 0x44]
lea edx, [ebp - 0x24]
call fcn.004212d0
add esp, 8
cmp eax, 0xffffffff
jne 0x421e76
xor eax, eax
cmp dword [ebp - 0x2c], eax
cmove esi, eax
test esi, esi
je 0x421e76
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00420f90
add esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x421ea8
cmp dword [ebp - 0x2c], 0
je 0x421ea8
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], 1
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 0x2d], 0
push eax
push ecx
lea edx, [ebp - 0x2d]
mov ecx, edi
call fcn.00421a00
add esp, 0xc
test eax, eax
je 0x421ee0
cmp dword [ebp - 0x2c], 0
je 0x421ee0
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
jne 0x421efd
call fcn.004051f0
mov dword [ebp - 0x2c], 0x2719
mov dword [ebp - 0x28], eax
jmp 0x421f45
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x38]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
test edi, edi
jne 0x421f42
lea ecx, [ebp - 0x60]
call fcn.00404d10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
lea edx, [ebp - 0x2d]
mov byte [ebp - 0x2d], 0
mov ecx, esi
call fcn.00421a00
add esp, 0xc
test eax, eax
je 0x421f80
cmp dword [ebp - 0x2c], 0
je 0x421f80
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x2c]
call fcn.00405160
mov dword [ebp - 0x38], 1
cmp esi, 0xffffffff
jne 0x421f93
call fcn.004051f0
jmp 0x421fc8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x38]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004051f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x421fc5
lea ecx, [ebp - 0x60]
call fcn.00404d10
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.00421b80
lea ecx, [ebp - 0x4c]
call fcn.00421b80
lea ecx, [ebp - 0x58]
call fcn.00421b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004664cd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret