Function at 0x6d7a32
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 0x6d7a67
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x6d7a67
push 7
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.006d80ca
add esp, 0xc
mov eax, dword [ebp + 0x10]
or dword [eax], 2
cmp dword [esi + 0xac], 0
jne 0x6d7c47
push ebx
call fcn.006d69fe
pop ecx
test eax, eax
jne 0x6d7dc9
cmp byte [esi + 0xbe], 0
mov eax, dword [ebx + 0x8e8]
mov dword [esi + 0xb0], eax
jne 0x6d7b36
cmp dword [esi + 0x88], 2
mov ecx, dword [esi + 0xb4]
jne 0x6d7af9
cmp dword [ecx + 0x1a0], 2
jne 0x6d7af9
and dword [esi + 0x74], 0xfffffffd
lea eax, [ebp - 0x1c]
push eax
mov dword [esi + 0x88], 1
call fcn.006d0b97
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.006bf97e
add esp, 0x14
jmp 0x6d7dc7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x298]
test dword [eax + 0x40], 0x40003
je 0x6d7b16
cmp dword [ecx + 0x1a0], 1
sete byte [ebp - 1]
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 0x4dc]
push ebx
call fcn.006d6437
add esp, 0xc
test eax, eax
jne 0x6d7dc9
mov edi, dword [ebp + 0x10]
jmp 0x6d7b38
xor edi, edi
test edi, edi
jne 0x6d7b48
test byte [esi + 0x74], 0x20
jne 0x6d7dc7
test edi, edi
jg 0x6d7b60
push esi
push ebx
call fcn.006d640f
pop ecx
pop ecx
test eax, eax
je 0x6d7dc7
jmp 0x6d7dc9
cmp byte [ebp - 1], 0
mov dword [esi + 0xac], edi
jne 0x6d7c47
cmp byte [ebx + 0x6de], 0
je 0x6d7c47
cmp dword [ebx + 0x94c], 0
jne 0x6d7bb5
mov eax, dword [ebx + 0x4dc]
add eax, eax
push eax
call dword [0x904f04]
mov dword [ebx + 0x94c], eax
pop ecx
test eax, eax
jne 0x6d7bb5
push str.Failed_to_alloc_scratch_buffer_
push ebx
call fcn.006cd005
pop ecx
pop ecx
push 0x1b
pop eax
jmp 0x6d7dc9
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x6d7c31
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 0x6d7c22
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [ebx + 0x94c]
mov byte [ecx + eax], 0xa
cmp byte [ebx + 0x6de], 0
jne 0x6d7c2b
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 0x6d7c2b
add dword [ebx + 0xc30], 1
adc dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc34], eax
jmp 0x6d7c2b
mov bl, byte [ebp + 0x13]
mov byte [eax + ecx], bl
mov ebx, dword [ebp + 8]
inc edx
inc ecx
cmp edx, edi
jl 0x6d7bbd
cmp ecx, edi
je 0x6d7c47
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.006cd3b6
add esp, 0x14
test eax, eax
jne 0x6d7dc9
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 0x6d7cae
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 0x6d7cfe
mov eax, dword [ebp - 8]
cdq
cmp ecx, edx
jg 0x6d7cce
jl 0x6d7cd6
cmp edi, eax
jb 0x6d7cd6
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.006ccf81
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 0x6d7d04
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 0x6d7d43
push eax
mov eax, dword [esi + 0xb0]
sub eax, dword [ebp + 8]
add eax, edi
push eax
push 4
push ebx
call fcn.006ccf81
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.006d7fe3
mov edi, dword [ebp - 8]
add esp, 0x1c
cmp byte [esi + 0xc2], 0
je 0x6d7d55
cmp byte [esi + 0xc4], 0
je 0x6d7d82
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0xc30]
jne 0x6d7d82
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx + 0xc34]
jne 0x6d7d82
push str.We_are_completely_uploaded_and_fine_n
push ebx
mov byte [esi + 0xbe], 1
call fcn.006cd0b1
mov edi, dword [ebp - 8]
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
cmp eax, edi
je 0x6d7d9c
sub eax, edi
add dword [esi + 0xb0], edi
mov dword [esi + 0xac], eax
jmp 0x6d7dc7
push ebx
call fcn.006d69fe
pop ecx
test eax, eax
jne 0x6d7dc9
mov eax, dword [ebx + 0x8e8]
and dword [esi + 0xac], 0
cmp byte [esi + 0xbe], 0
mov dword [esi + 0xb0], eax
jne 0x6d7b4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret