Function at 0x6b65c9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 1], 0
lea esi, [ebx + 0x88]
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x6b65fe
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x6b65fe
push 7
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.006b6c61
add esp, 0xc
mov eax, dword [ebp + 0x10]
or dword [eax], 2
cmp dword [esi + 0xac], 0
jne 0x6b67de
push ebx
call fcn.006b5595
pop ecx
test eax, eax
jne 0x6b6960
cmp byte [esi + 0xbe], 0
mov eax, dword [ebx + 0x8e8]
mov dword [esi + 0xb0], eax
jne 0x6b66cd
cmp dword [esi + 0x88], 2
mov ecx, dword [esi + 0xb4]
jne 0x6b6690
cmp dword [ecx + 0x1a0], 2
jne 0x6b6690
and dword [esi + 0x74], 0xfffffffd
lea eax, [ebp - 0x1c]
push eax
mov dword [esi + 0x88], 1
call fcn.006af7c4
lea edi, [esi + 0x78]
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax], 0xfffffffd
mov eax, dword [ebx + 0x6a8]
cdq
push edx
push eax
push ebx
call fcn.0069e7c0
add esp, 0x14
jmp 0x6b695e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x298]
test dword [eax + 0x40], 0x40003
je 0x6b66ad
cmp dword [ecx + 0x1a0], 1
sete byte [ebp - 1]
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 0x4dc]
push ebx
call fcn.006b4fce
add esp, 0xc
test eax, eax
jne 0x6b6960
mov edi, dword [ebp + 0x10]
jmp 0x6b66cf
xor edi, edi
test edi, edi
jne 0x6b66df
test byte [esi + 0x74], 0x20
jne 0x6b695e
test edi, edi
jg 0x6b66f7
push esi
push ebx
call fcn.006b4fa6
pop ecx
pop ecx
test eax, eax
je 0x6b695e
jmp 0x6b6960
cmp byte [ebp - 1], 0
mov dword [esi + 0xac], edi
jne 0x6b67de
cmp byte [ebx + 0x6de], 0
je 0x6b67de
cmp dword [ebx + 0x94c], 0
jne 0x6b674c
mov eax, dword [ebx + 0x4dc]
add eax, eax
push eax
call dword [0x8d5e5c]
mov dword [ebx + 0x94c], eax
pop ecx
test eax, eax
jne 0x6b674c
push str.Failed_to_alloc_scratch_buffer_
push ebx
call fcn.006abd54
pop ecx
pop ecx
push 0x1b
pop eax
jmp 0x6b6960
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x6b67c8
mov eax, dword [esi + 0xb0]
mov al, byte [edx + eax]
mov byte [ebp + 0x13], al
cmp byte [ebp + 0x13], 0xa
mov eax, dword [ebx + 0x94c]
mov ebx, dword [ebp + 8]
jne 0x6b67b9
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [ebx + 0x94c]
mov byte [ecx + eax], 0xa
cmp byte [ebx + 0x6de], 0
jne 0x6b67c2
mov esi, dword [ebx + 0xc34]
mov eax, dword [ebx + 0xc30]
and eax, esi
mov dword [ebp + 0x10], esi
lea esi, [ebx + 0x88]
cmp eax, 0xffffffff
je 0x6b67c2
add dword [ebx + 0xc30], 1
adc dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc34], eax
jmp 0x6b67c2
mov bl, byte [ebp + 0x13]
mov byte [eax + ecx], bl
mov ebx, dword [ebp + 8]
inc edx
inc ecx
cmp edx, edi
jl 0x6b6754
cmp ecx, edi
je 0x6b67de
mov eax, dword [ebx + 0x94c]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xac], ecx
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [esi + 0xac]
push dword [esi + 0xb0]
push dword [edi + 0x2b4]
push ebx
call fcn.006ac105
add esp, 0x14
test eax, eax
jne 0x6b6960
mov edi, dword [edi + 0x2b4]
lea eax, [ebp + 0x10]
xor ecx, ecx
push ecx
push ecx
push eax
push 4
lea eax, [ebp + 8]
push eax
push ecx
push ecx
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x6b6845
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [esi + 0x30]
mov eax, edi
mov ecx, dword [esi + 0x34]
or eax, ecx
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], ecx
je 0x6b6895
mov eax, dword [ebp - 8]
cdq
cmp ecx, edx
jg 0x6b6865
jl 0x6b686d
cmp edi, eax
jb 0x6b686d
mov edi, eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], edx
push edi
push dword [esi + 0xb0]
push 2
push ebx
call fcn.006abcd0
mov ecx, dword [ebp + 8]
add esp, 0x10
sub dword [esi + 0x30], edi
mov edi, dword [ebp - 8]
mov eax, edi
sbb dword [esi + 0x34], ecx
cdq
sub eax, dword [ebp + 0x10]
sbb edx, ecx
jmp 0x6b689b
mov edi, dword [ebp - 8]
mov eax, edi
cdq
mov ecx, eax
mov dword [ebp + 0x10], edx
or ecx, edx
mov dword [ebp + 8], eax
je 0x6b68da
push eax
mov eax, dword [esi + 0xb0]
sub eax, dword [ebp + 8]
add eax, edi
push eax
push 4
push ebx
call fcn.006abcd0
mov eax, dword [ebp + 8]
add dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
adc dword [esi + 0x1c], eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ebx
call fcn.006b6b7a
mov edi, dword [ebp - 8]
add esp, 0x1c
cmp byte [esi + 0xc2], 0
je 0x6b68ec
cmp byte [esi + 0xc4], 0
je 0x6b6919
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0xc30]
jne 0x6b6919
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx + 0xc34]
jne 0x6b6919
push str.We_are_completely_uploaded_and_fine_n
push ebx
mov byte [esi + 0xbe], 1
call fcn.006abe00
mov edi, dword [ebp - 8]
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
cmp eax, edi
je 0x6b6933
sub eax, edi
add dword [esi + 0xb0], edi
mov dword [esi + 0xac], eax
jmp 0x6b695e
push ebx
call fcn.006b5595
pop ecx
test eax, eax
jne 0x6b6960
mov eax, dword [ebx + 0x8e8]
and dword [esi + 0xac], 0
cmp byte [esi + 0xbe], 0
mov dword [esi + 0xb0], eax
jne 0x6b66e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret