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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100e1bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
call fcn.100ae100
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.100ae100
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp esi, 0xffffffff
jne 0x10022ae3
or ebx, esi
mov dword [esp + 0x24], ebx
jmp 0x10022afa
xor edi, edi
call fcn.100ae100
mov ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov ebx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], 0
cmp ebx, 0xffffffff
jne 0x10022b26
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
je 0x10022b26
lea ecx, [esp + 0x14]
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
mov dword [esp + 0x20], 1
cmp ebx, 0xffffffff
jne 0x10022b43
call fcn.100ae100
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
jmp 0x10022b84
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.100ae100
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
test esi, esi
jne 0x10022b88
call fcn.100ae100
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, 2
push str.127.0.0.1
mov dword [esp + 0x20], 0x10
mov word [esp + 0x3c], ax
call edi
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
xor ecx, ecx
push 0x10
push edx
lea esi, [esp + 0x1c]
mov eax, ebx
mov word [esp + 0x42], cx
call fcn.10022770
add esp, 8
cmp eax, 0xffffffff
jne 0x10022bfa
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.100aec40
je 0x10022bfa
mov ecx, esi
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
lea edx, [esp + 0x38]
push edx
lea esi, [esp + 0x18]
lea eax, [esp + 0x20]
mov ecx, ebx
call fcn.10022930
add esp, 4
cmp eax, 0xffffffff
jne 0x10022c32
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.100aec40
je 0x10022c32
mov ecx, esi
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
push str.127.0.0.1
call edi
mov dword [esp + 0x3c], eax
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.10022850
cmp eax, 0xffffffff
jne 0x10022c6a
mov edx, dword [esp + 0x14]
neg edx
sbb edx, edx
test edx, fcn.100aec40
je 0x10022c6a
mov eax, esi
push eax
mov edx, str.socket_select_interrupter
call fcn.100029d0
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.100ae100
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp esi, 0xffffffff
jne 0x10022ca6
or edi, esi
jmp 0x10022cb9
xor edi, edi
call fcn.100ae100
mov ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov edi, esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x58], 1
cmp edi, 0xffffffff
jne 0x10022ce2
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
je 0x10022ce2
lea ecx, [esp + 0x14]
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.100227e0
add esp, 8
cmp eax, 0xffffffff
jne 0x10022d1c
mov ecx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
je 0x10022d1c
mov edx, esi
push edx
mov edx, str.socket_select_interrupter
call fcn.100029d0
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
call fcn.10022700
mov dword [esp + 0x1c], eax
mov byte [esp + 0x58], 2
cmp eax, 0xffffffff
jne 0x10022d53
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.100aec40
je 0x10022d53
mov ecx, esi
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
lea edx, [esp + 0x13]
push edx
lea esi, [esp + 0x18]
lea ebx, [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x2c], 1
mov byte [esp + 0x17], 0
call fcn.100229b0
add esp, 4
test eax, eax
je 0x10022d97
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.100aec40
je 0x10022d97
mov ecx, esi
push ecx
mov edx, str.socket_select_interrupter
call fcn.100029d0
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
jne 0x10022db4
call fcn.100ae100
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
jmp 0x10022df2
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x24]
push edx
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.100ae100
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x10022df6
call fcn.100ae100
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x13]
push eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x18]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], 1
mov byte [esp + 0x17], 0
call fcn.100229b0
add esp, 4
test eax, eax
je 0x10022e3d
mov ecx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
test ecx, fcn.100aec40
je 0x10022e3d
mov edx, esi
push edx
mov edx, str.socket_select_interrupter
call fcn.100029d0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
cmp ebx, 0xffffffff
je 0x10022e79
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x24]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.100ae100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x10022e7e
call fcn.100ae100
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [esp + 0x58], 0xffffffff
cmp edi, 0xffffffff
je 0x10022ec3
mov dword [esp + 0x14], 0
call fcn.100ae100
lea ecx, [esp + 0x13]
mov dword [esp + 0x18], eax
push 1
push ecx
lea esi, [esp + 0x1c]
mov eax, edi
mov byte [esp + 0x1b], 0
call fcn.100201c0
add esp, 8
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100bfcbc
mov esp, ebp
pop ebp
ret 4