Function at 0x6aec13a0
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x6af09160]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19c]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1b4], ebx
push 0x190
push esi
push eax
mov dword [ebp - 0x1a8], 0
or edi, 0xffffffff
mov dword [ebp - 0x1a0], esi
call fcn.6aee0e40
add esp, 0xc
mov dword [ebp - 0x1b0], esi
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a4], esi
mov dword [ebx], esi
push eax
push 0x202
call dword [0x6af0e0bc]
mov ebx, eax
test ebx, ebx
jle 0x6aec141c
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x6aec142c
mov dword [ebp - 0x1a8], 0x15e
xor eax, eax
jmp 0x6aec1468
push 6
push 1
push 0x17
call dword [0x6af0e10c]
mov edi, eax
mov dword [ebp - 0x1a8], edi
cmp edi, 0xffffffff
jne 0x6aec1475
call fcn.6af068c0
mov ebx, eax
test ebx, ebx
jle 0x6aec1459
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x1a8], 0x164
mov eax, 1
test eax, eax
je 0x6aec16d7
jmp 0x6aec16c2
push 4
lea eax, [ebp - 0x1b0]
push eax
push 0x1b
push 0x29
push edi
call dword [0x6af0e108]
test eax, eax
je 0x6aec14b0
call fcn.6af068c0
mov ebx, eax
test ebx, ebx
jle 0x6aec14a1
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x1a8], 0x16c
jmp 0x6aec16b8
lea edx, [ebp - 0x1a0]
mov dword [ebp - 0x1a4], 0x200
mov ecx, 0x200
call fcn.6aedd061
mov esi, dword [ebp - 0x1a0]
mov ebx, eax
test ebx, ebx
jns 0x6aec14e5
mov dword [ebp - 0x1a8], 0x170
jmp 0x6aec16b8
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
push esi
push 0
push 0
push 0x48000016
push edi
call dword [0x6af0e0d0]
test eax, eax
je 0x6aec1573
jmp 0x6aec1510
call dword [0x6af0e0dc]
cmp eax, 0x271e
jne 0x6aec15cb
test esi, esi
je 0x6aec1530
lea ecx, [ebp - 0x1a0]
call fcn.6aee1871
mov ecx, dword [ebp - 0x1a4]
lea edx, [ebp - 0x1a0]
call fcn.6aedd061
mov esi, dword [ebp - 0x1a0]
mov ebx, eax
test ebx, ebx
js 0x6aec15bc
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
push esi
push 0
push 0
push 0x48000016
push edi
call dword [0x6af0e0d0]
test eax, eax
jne 0x6aec1510
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x1a4]
push eax
push esi
push eax
push esi
push 0xc8000019
push edi
call dword [0x6af0e0d0]
cmp eax, 0xffffffff
jne 0x6aec15ee
call fcn.6af068c0
mov ebx, eax
test ebx, ebx
jle 0x6aec15ad
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x1a8], 0x19e
jmp 0x6aec16b8
mov dword [ebp - 0x1a8], 0x187
jmp 0x6aec16b8
call fcn.6af068c0
mov ebx, eax
test ebx, ebx
jle 0x6aec15df
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x1a8], 0x184
jmp 0x6aec16b8
xor ecx, ecx
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1cc], ecx
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x1a0], eax
mov word [ebp - 0x1cc], cx
xor ebx, ebx
mov ecx, dword [esi]
mov dword [ebp - 0x1b8], ecx
test ecx, ecx
je 0x6aec16a4
mov edi, 0xffff
jmp 0x6aec1630
mov edx, dword [esi + ebx*8 + 4]
cmp word [edx + 8], 0
jne 0x6aec1692
cmp word [edx + 0xa], 0
jne 0x6aec1692
cmp word [edx + 0xc], 0
jne 0x6aec1692
cmp word [edx + 0xe], 0
jne 0x6aec1692
cmp word [edx + 0x10], 0
jne 0x6aec1692
cmp word [edx + 0x12], di
jne 0x6aec1692
mov ax, word [edx + 2]
mov ecx, dword [edx + 0x14]
mov word [ebp - 0x1ca], ax
mov eax, dword [ebp - 0x1cc]
mov dword [edx], eax
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1b8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esi + ebx*8 + 8], 0x10
inc eax
inc ebx
mov dword [ebp - 0x1a0], eax
cmp ebx, ecx
jb 0x6aec1630
mov edi, dword [ebp - 0x1a8]
mov dword [esi], eax
xor ebx, ebx
mov eax, dword [ebp - 0x1b4]
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0x1a0], esi
push edi
call dword [0x6af0e0cc]
or edi, 0xffffffff
call dword [0x6af0e0d8]
test esi, esi
je 0x6aec16d7
lea ecx, [ebp - 0x1a0]
call fcn.6aee1871
cmp edi, 0xffffffff
je 0x6aec16e3
push edi
call dword [0x6af0e0cc]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6aee0390
mov esp, ebp
pop ebp
ret 4