Function at 0x1008affd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.100abdd1
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.100abdd1
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x100d4720
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x100e6ccd]
and eax, 1
xor eax, 1
test eax, eax
je 0x1008b088
mov eax, 0
jmp 0x1008b6b9
mov dword [ebp - 0x14], esp
push 1
push 0
push 0
push 6
push 1
push 2
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1008b0cf
push 0x77
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008b0e6
mov eax, 0
jmp 0x1008b6b9
call fcn.1008b6dd
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008b12e
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1008b124
push 0x177
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
mov eax, 0
jmp 0x1008b6b9
mov ebx, dword [0x100e6cdd]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b158
push 0x1c2
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b175
push 0x1c2
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x100e6ce5]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b1af
push 0x1ea
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b1cc
push 0x1ea
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [0x100e6ce1]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b207
push 0x20e
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b224
push 0x20e
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x100e6cd9]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b25e
push 0x236
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b27b
push 0x236
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1008b2d0
push 0x2bb
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push dword [ebp + 0x14]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1008b30a
push 0x2f8
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov dword [ebp - 0x14], esp
push 0x10
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.100abdd1
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1008b392
push 0x33f
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.100aca70
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x1008b3e9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x1008b3e7
imul eax, dword [edi]
jmp 0x1008b3dc
mov ecx, eax
cmp ecx, 8
jle 0x1008b3f3
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.100abdd7
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008b4d2
call fcn.1008b784
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1008b4d2
mov ebx, dword [0x100e6ce1]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b451
push 0x416
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b46e
push 0x416
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 8]
push dword [0x100e6cd1]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1008b4b2
push 0x416
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
push 1
push dword [ebp - 0x10]
call fcn.1008b90d
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.100200e4
mov eax, dword [ebp - 8]
jmp 0x1008b6b9
mov ebx, dword [0x100e6ce1]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b4fc
push 0x4d2
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b519
push 0x4d2
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1008b54f
push 0x4d2
push 0x4057ad1
push 6
call fcn.100abddd
add esp, 0xc
mov ebx, dword [0x100e6cdd]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b579
push 0x4f3
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b596
push 0x4f3
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6ce1]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b5d1
push 0x51d
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b5ee
push 0x51d
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6cd9]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b629
push 0x547
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b646
push 0x547
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6ce5]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1008b681
push 0x571
push 0x4057ad1
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1008b69e
push 0x571
push 0x4057ad1
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov eax, 0
jmp 0x1008b6b9
push eax
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100abdd7
add esp, 4
pop ebx
call fcn.100abdd7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10