Function at 0x1000de20
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push ebx
push edi
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x1000de5b
pop edi
mov dword [0x1002650c], 0
mov dword [0x10026728], 0xffffffff
xor al, al
pop ebx
add esp, 0x1a0
ret
mov ebx, dword [esp + 0x1b0]
mov word [0x10026510], 2
push ebx
call dword [sym.imp.WSOCK32.dll_htons]
mov edi, dword [esp + 0x1ac]
mov word [0x10026512], ax
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [0x10026514], eax
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x1002650c], eax
jne 0x1000debb
mov dword [0x10026728], eax
pop edi
mov dword [0x1002650c], 0
xor al, al
pop ebx
add esp, 0x1a0
ret
cmp byte [0x10016f3d], 3
jne 0x1000ded8
mov al, byte [0x10016f3c]
mov byte [0x10016f3d], 0x30
sar al, 2
mov byte [0x10016f3c], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov edx, ecx
mov esi, edi
mov edi, 0x10026624
mov al, byte [0x10027e6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, al
mov word [0x10026836], bx
jne 0x1000df10
mov byte [0x10027e6c], 8
push ebp
mov ebp, dword [esp + 0x1bc]
cmp ebp, 0x10026520
je 0x1000e019
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
mov ax, word [ebp]
push 0x10
not ecx
dec ecx
push ebx
mov esi, ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x19], bx
push ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x1c], ax
call sub.MSVCRT.dll_strtol
mov dx, word [ebp + 2]
mov byte [esp + 0x20], al
push 0x10
lea eax, [esp + 0x20]
push ebx
push eax
mov word [esp + 0x28], dx
call sub.MSVCRT.dll_strtol
mov cx, word [esi + ebp - 2]
push 0x10
lea edx, [esp + 0x2c]
push ebx
push edx
mov byte [esp + 0x39], al
mov word [esp + 0x34], cx
call sub.MSVCRT.dll_strtol
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0x3a]
mov ecx, dword [esp + 0x39]
mov edx, dword [esp + 0x38]
and eax, 0xff
and ecx, 0xff
xor eax, ecx
and edx, 0xff
xor eax, edx
mov ecx, esi
mov dword [0x10026508], eax
mov esi, ebp
lea eax, [eax + eax + 2]
mov edi, 0x10026520
sub ecx, eax
add esp, 0x24
mov edx, ecx
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax - 2]
xor esi, esi
test edi, edi
jbe 0x1000e019
jmp 0x1000dfe5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
sub ecx, eax
push 0x10
add ecx, edx
lea eax, [esp + 0x14]
push 0
push eax
mov dx, word [ecx + ebp]
mov word [esp + 0x1c], dx
call sub.MSVCRT.dll_strtol
xor al, bl
add esp, 0xc
mov byte [ebx + 0x10027944], al
add esi, 2
inc ebx
cmp esi, edi
jb 0x1000dfe1
mov edi, dword [esp + 0x1c0]
or ecx, 0xffffffff
xor eax, eax
pop ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1002672c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c0]
test edi, edi
je 0x1000e07d
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1002783c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
mov byte [0x10027940], 1
pop ebx
add esp, 0x1a0
ret
pop esi
pop edi
mov byte [0x10027940], 0
mov al, 1
pop ebx
add esp, 0x1a0
ret