Function at 0x40b7e0
Capabilities:
Connect socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x10
call fcn.0040e018
add esp, 4
mov dword [ebp - 4], 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.0040e018
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4206ef
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 ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
push dword [ebp + 0x10]
call dword [sym.imp.WSOCK32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b864
push 6
call fcn.0040e01e
add esp, 4
mov ebx, dword [ebp - 8]
mov word [ebx], ax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b897
push 6
call fcn.0040e01e
add esp, 4
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov word [ebx], 2
mov ebx, dword [0x420c83]
call fcn.00404d56
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x40b8ca
push 4
call fcn.0040e01e
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40b8dd
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
push 0x10
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.0040e018
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 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
mov ebx, dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_connect]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b961
push 6
call fcn.0040e01e
add esp, 4
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
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.0040e3b0
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 0x40b9b8
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40b9b6
imul eax, dword [edi]
jmp 0x40b9ab
mov ecx, eax
cmp ecx, 8
jle 0x40b9c2
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.0040e012
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40b9ee
mov eax, 0
jmp 0x40ba83
mov ebx, dword [0x420c83]
call fcn.00404d56
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x40ba0e
push 4
call fcn.0040e01e
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ba21
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 1
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push 0x40c6fe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40ba79
push 6
call fcn.0040e01e
add esp, 4
mov eax, 1
jmp 0x40ba83
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040e012
add esp, 4
pop ebx
call fcn.0040e012
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc